ofTheo / CreatorsProjectDev

The creators project source code based off of Kyle McDonald's structured light code.
http://sites.google.com/site/structuredlight/
12 stars 1 forks source link

png save performance #56

Open ofTheo opened 14 years ago

ofTheo commented 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);
kylemcdonald commented 14 years ago

maybe worth it if they're smaller than the tga?