Hi everyone,

I try to scale image by using scalImage function in class Image but it
always return* out of memory*.
I try to read old mailing list but I don't understand. Could someone tell me
what wrong with my code below.


#include<osg/Image>
#include<osgDB/ReadFile>
#include<osgDB/WriteFile>

int main(int,char **)
{
  osg::ref_ptr<osg::Image> image = osgDB::readImageFile("Sunset.bmp");
  image->scaleImage(256,256,1);
 return 0;
}


thank you very much.
//Phummipat
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to