ofImage (functions)
ofCloseFreeImage( )
void ofCloseFreeImage()Deallocates FreeImage resources.
Used internally during shutdown.
ofImageFormatExtension( ... )
string ofImageFormatExtension(ofImageFormat format)ofLoadImage( ... )
bool ofLoadImage(ofShortPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofFloatPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofShortPixels &pix, const filesystem::path &path, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofFloatPixels &pix, const filesystem::path &path, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofPixels &pix, const filesystem::path &path, const ofImageLoadSettings &settings)\todo Needs documentation.
ofLoadImage( ... )
bool ofLoadImage(ofTexture &tex, const ofBuffer &buffer, const ofImageLoadSettings &settings)ofLoadImage( ... )
bool ofLoadImage(ofTexture &tex, const filesystem::path &path, const ofImageLoadSettings &settings)\todo Needs documentation.
ofSaveImage( ... )
bool ofSaveImage(const ofShortPixels &pix, ofBuffer &buffer, ofImageFormat format=OF_IMAGE_FORMAT_PNG, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)ofSaveImage( ... )
bool ofSaveImage(const ofFloatPixels &pix, ofBuffer &buffer, ofImageFormat format=OF_IMAGE_FORMAT_PNG, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)ofSaveImage( ... )
bool ofSaveImage(const ofPixels &pix, ofBuffer &buffer, ofImageFormat format=OF_IMAGE_FORMAT_PNG, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)ofSaveImage( ... )
bool ofSaveImage(const ofShortPixels &pix, const filesystem::path &path, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)\todo Needs documentation.
ofSaveImage( ... )
bool ofSaveImage(const ofFloatPixels &pix, const filesystem::path &path, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)\todo Needs documentation.
ofSaveImage( ... )
bool ofSaveImage(const ofPixels &pix, const filesystem::path &path, ofImageQualityType qualityLevel=OF_IMAGE_QUALITY_BEST)\todo Needs documentation.
ofToString( ... )
string ofToString(const ofImageType &imgType)ofToString( ... )
string ofToString(const T &v)\section String Conversion Convert a value to a string.
ofToString does its best to convert any value to a string. If the data type implements a stream << operator, then it will be converted.
Example:
std::string str = "framerate is ";
str += ofToString(ofGetFrameRate()) + " fps";
// The string now containes something like "framerate is 60 fps".
\tparam T The data type of the value to convert to a string.
Parameters:
value The value to convert to a string.
Returns: A string representing the value or an empty string on failure.