Graphics object g constructed using RasterArray[ ] or Raster[ ] is converted to the Java Image by ToJavaImage[ ].
In[16]:=
![]()
Then the Java Image ji is shown again as Graphics.
In[17]:=
![]()
A Graphics object is not always constructed by RasterArray/Raster. For example, Plot[ ] has graphics primitive(s) such as Line[ ](s.).
In[18]:=
![]()
In this example a Line[ ] is used to generate Graphics.
In[19]:=
![]()
By putting a string "pl" to the ToJavaImage[ ], the Plot[ ] is converted to the Java Image.
In[20]:=
![]()
The rasterized image data is shown by ShowJavaImage[ ].
In[21]:=
![]()
Converted by Mathematica (July 17, 2003)