Hi Ufuk,

disregarding the follow-ups regarding mipmapping:

you're saving the original image. The scaled down image is 'cimage', not the original 'image'. Change the 'writeImageFile' to use 'cimage' and you should be good.

Cheers,
/uli

On 20/08/09 4:39 PM, Ufuk wrote:
is there any function that 
com/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void simUtil::SimImageUtils::scaleAndSaveImage( osg::Image* image, float
scaleFactor, const std::string&  filename )
{
    osg::ref_ptr<osg::Image>  cImage = new osg::Image(*image);

    cImage->scaleImage(image->s() * scaleFactor, image->t() * scaleFactor,
image->r() * scaleFactor);

    osgDB::writeImageFile(*image, filename);
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to