//------------------------------------ bool ofxImage::saveImage(string fileName){ string localFileName = getFileName(); if(fileName == "" && localFileName != "") fileName = localFileName; bool result = saveImageFromPixels(fileName, myPixels); if(result && fileName != getFileName()) setFileName(fileName); return result; }
//---------------------------------------------------------- void ofImage::saveImage(string fileName){ saveImageFromPixels(fileName, myPixels); }