1 Ogre::TexturePtr tex = Ogre::TextureManager::getSingleton( ).getByName( "YaHeiTexture" ); 2 Ogre::Image image; 3 tex->convertToImage( image ); 4 image.save( "tex.png" );