|
hello all.
I would like to make a Texture-object from the information in an Image object. I got the Image via the getImage() method in an AWT Component. Texture-classes (Texture2D in particular) seem to want an ImageComponent-object. And an ImageComponent-object seems to want a BufferedImage-object. And to use a BufferedImage-object, I need a kind of Raster. But I can't seem to convert the Image2D-object that I have to any of those required classes. So if anybody knows how to make a Texture from an Image2D, I'd be very gratefull if you could tell me! P.S. Are there any good books that address such issues (or that explain the exact working of the util-package classes) ? Thanx. Pieter. |
