Re: [osg-users] osg::Image SubImage

2009-10-18 Thread Johannes Schüth
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)

[osg-users] osg::Image SubImage

2009-10-17 Thread Johannes Schüth
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