Perhaps my question earlier this week was not as succinct as it should have been.

I know I can load an osg::Image like this:

osg::Image*  klnFace = osgDB::readImageFile("b:\\image2.jpg");

But, how would I do it if I already had the jpeg information loaded into a BYTE or unsigned character array?

Something like :

klnFace->getData();

where I somehow specify that the data is in jpeg compressed format.


Mike Greene
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to