Hi,
i'm trying to save an image or rather a PXL_Raster to a file but there will be no genereted file.
IMG_File *tex = IMG_File::open("D:/test.png");
UT_PtrArray<PXL_Raster *> images;
tex->readImages(images);
// First try
if (IMG_File::saveRasterAsFile("D:/new.png", images[0]))
cout << "Success!" << endl; // is not called
// Second try
if (tex->writeImages(images))
cout << "Success!" << endl; // is also not called
tex->close();
delete tex;
What i'm doing wrong?
Has someone a tip for me?
Thanks!