Hi,
i just implemented my own resize method.
Code:
osg::Image* getSubImage(osg::Image* sourceImage, int startX, int startY,int
stopX, int stopY) {
int subImageWidth = stopX - startX;
int subImageHeight = stopY - startY;
if(subImageWidth<=0 || subImageHeight<=0)
Hi,
is there a way of getting a subimage from an osg::Image? I only found the
option of inserting an image as a portion of a bigger image by using
osg::Image::copySubImage.
Thank you!
Cheers,
Johannes
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.ph
2 matches
Mail list logo