Hi Cemal,

It may have been a mistake to implement 2 kinds of Image object without
having 2 subclasses or an interface to distinguish the two, but there is
a reason for there to be a difference.

Images loaded from a URL or a file are shared between requests for the same
file/URL.  As a result, drawing into them would represent "graffiti" to
those who were using the image and uninterested in what your code may want
to annotate on top of the image.  Thus, there are "readonly" images that
are loaded from image files - and "readwrite" images that you get from
createImage(w,h).  To provide annotations, you can render the readonly
images into a writable one and then annotate on top of them in the
writable copy.  You can create a writable image with createImage(w,h)
or, now in Java 2 you can construct a BufferedImage of a specific format
to suit your needs...

                                ...jim

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to