I want to know individual alpha red blue and green values of a pixel. Following code displays image from a file ( given as first argument ) but does not show any rgba vaures ( all values returned are 0 )
Pl. let me know what is the error in the code :
I have also tried to get rgba values in a array int rgba form. But I am always getting zero values for all pixels.
Also, the code you copied and added to has been around for more than 12 years*. I suggest you go through the Swing trail of the Oracle tutorials, where you will find updated sample code that (a) respects Swing's single threaded rule and (b) doesn't use methods that have been deprecated since that coed was written.