Pixels in the Java image can be retrieved by using java.awt.image.PixelGrabber. A pixel in Java is defined by 4 byte integer in the form of ARGB. GrabPixels[ ] decompose the Java image into a matrix of {R,G,B}s.
In[11]:=
![]()
In[12]:=
![]()
In[13]:=
![]()
Matrix of colors GrabPixels[ ] has returned can be shown as Graphics object by converting it into a RasterArray[ ].
In[14]:=
![]()
In[15]:=
![]()
Converted by Mathematica (July 17, 2003)