•Getting Java Image

[Graphics:../HTMLFiles/index_13.gif]

ImageIcon is created.

In[6]:=

imageIcon = NewImageIcon[$JavaSwingMaterial <> "asakusa.jpg"]

Java Image object is received through the ImageIcon.

In[7]:=

javaImage = imageIcon @ getImage[]

The size of the image is retrieved.

In[8]:=

width = javaImage @ getWidth[]

In[9]:=

height = javaImage @ getHeight[]


Converted by Mathematica  (July 17, 2003)