How save are images created with createImage()?

Hi there!

I have to deal with a bit strange questions:

Are offscreen-images guaranteed to be compatible to any output-device they are drawn to, even if e.g. the Component I create the image against is completly different from the component I paint the image to?

If I have a application with e.g. 2 Frames in 2 different monitor with different colors and resolution and I create an image on frame1 draw into it and paint it on frame2. Is this guaranteed to work?

I don’t mind about needed internal conversations,but does java handle this for the programmer?
(If yes, are the conversation results cached in any way?)

Thanks in advance, lg Clemens

afaik, you’ll be able to draw the images, but image transformations can crash. However, I could be wrong.

Yes, this should be handled by Java2D, at least, for managed images. As for VolatileImages, that what their ‘validate(GraphicsConfiguration)’ method is for, in part: you can find out if an image is incompatible with the destination graphics configuration, and recreate an image if that’s the case.

Thanks,
Dmitri

Thanks!

Yes, I only rely on managed images for that task so there (i hope) should be no problems…

Thanks again, lg Clemens