Open ofTheo opened 14 years ago
we can get much faster png saving ( at the cost of larger file sizes ) with this code:
in: void ofImage::saveImageFromPixels(string fileName, ofPixels &pix){
int flags = 0; if( fif == FIF_PNG ){ flags = 0x0001; } FreeImage_Save(fif, bmp, fileName.c_str(), flags);
maybe worth it if they're smaller than the tga?
we can get much faster png saving ( at the cost of larger file sizes ) with this code:
in: void ofImage::saveImageFromPixels(string fileName, ofPixels &pix){