Hi,

I create a texture from an image I load...


Code:

osg::ref_ptr<osg::Image> originalImage = osgDB::readImageFile( textureFilename 
);
m_Texture = new osg::TextureRectangle;
m_Texture->setImage( originalImage.get() );




I would like to also create texture from a sub images of originalImage.  Is 
there an osg::Image method that allows one to copy a MxN image starting at 
(Xoffset,Yoffset) and use that as a new image for a texture?

something like 

Code:

osg::image *pNewImage = originalImage->getSubImage(Xoffset, Yoffset, M, N, ...) 







... 

Thank you!

Cheers,
Conan[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52624#52624





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to