If I create a new Raster image and pass it an image and
imagecomponent2D, am I guaranteed that when I ask for them back that
they will be exactly the same instance?
BufferedImage img = new BufferedImage(rect.width,rect.height,
BufferedImage.TYPE_INT_RGB);
ImageComponent2D comp =
new ImageComponent2D(ImageComponent.FORMAT_RGB, img);
Raster ras = new Raster(new Point3f(-1.0f,-1.0f,-1.0f),
Raster.RASTER_COLOR,
0,
0,
rect.width,
rect.height,
comp,
null);
ImageComponent2D comp_2 = ras.getImage();
BufferedImage img_2 = comp_2.getImage();
Ie comp_2 == comp and img_2 == img are both true;
--
Justin Couch Author, Java Hacker
http://www.vlc.com.au/~justin/ Java 3D FAQ Maintainer
http://www.j3d.org/ J3D.org The Java 3D Community Site
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".