This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofImage.cpp File Reference
#include "ofImage.h"
#include "ofAppRunner.h"
#include "ofPixels.h"
#include "FreeImage.h"
#include "ofURLFileLoader.h"
#include "uriparser/Uri.h"
Functions | |
void | ofInitFreeImage (bool deinit=false) |
template<typename T > | |
FREE_IMAGE_TYPE | getFreeImageType (const ofPixels_< T > &pix) |
template<> | |
FREE_IMAGE_TYPE | getFreeImageType (const ofPixels &pix) |
template<> | |
FREE_IMAGE_TYPE | getFreeImageType (const ofShortPixels &pix) |
template<> | |
FREE_IMAGE_TYPE | getFreeImageType (const ofFloatPixels &pix) |
template<typename PixelType > | |
FIBITMAP * | getBmpFromPixels (const ofPixels_< PixelType > &pix) |
template<typename PixelType > | |
void | putBmpIntoPixels (FIBITMAP *bmp, ofPixels_< PixelType > &pix, bool swapOnLittleEndian=true, bool bUsePassedPixelFormat=false) |
bool | ofLoadImage (ofPixels &pix, const of::filesystem::path &path, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofShortPixels &pix, const of::filesystem::path &path, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofShortPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofFloatPixels &pix, const of::filesystem::path &path, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofFloatPixels &pix, const ofBuffer &buffer, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofTexture &tex, const of::filesystem::path &path, const ofImageLoadSettings &settings) |
bool | ofLoadImage (ofTexture &tex, const ofBuffer &buffer, const ofImageLoadSettings &settings) |
bool | ofSaveImage (const ofPixels &pix, const of::filesystem::path &fileName, ofImageQualityType qualityLevel) |
bool | ofSaveImage (const ofFloatPixels &pix, const of::filesystem::path &fileName, ofImageQualityType qualityLevel) |
bool | ofSaveImage (const ofShortPixels &pix, const of::filesystem::path &fileName, ofImageQualityType qualityLevel) |
bool | ofSaveImage (const ofPixels &pix, ofBuffer &buffer, ofImageFormat format, ofImageQualityType qualityLevel) |
bool | ofSaveImage (const ofFloatPixels &pix, ofBuffer &buffer, ofImageFormat format, ofImageQualityType qualityLevel) |
bool | ofSaveImage (const ofShortPixels &pix, ofBuffer &buffer, ofImageFormat format, ofImageQualityType qualityLevel) |
void | ofCloseFreeImage () |
Deallocates FreeImage resources. | |
template<typename PixelType > | |
void | ofGrabScreen (ofPixels_< PixelType > &pixels, int x, int y, int w, int h) |
template<> | |
void | ofGrabScreen (ofPixels &p, int x, int y, int w, int h) |
template<> | |
std::string | ofToString (const ofImageType &imgType) |
Function Documentation
◆ getBmpFromPixels()
template<typename PixelType >
FIBITMAP * getBmpFromPixels | ( | const ofPixels_< PixelType > & | pix | ) |
◆ getFreeImageType() [1/4]
template<>
FREE_IMAGE_TYPE getFreeImageType | ( | const ofFloatPixels & | pix | ) |
◆ getFreeImageType() [2/4]
template<>
FREE_IMAGE_TYPE getFreeImageType | ( | const ofPixels & | pix | ) |
◆ getFreeImageType() [3/4]
template<typename T >
FREE_IMAGE_TYPE getFreeImageType | ( | const ofPixels_< T > & | pix | ) |
◆ getFreeImageType() [4/4]
template<>
FREE_IMAGE_TYPE getFreeImageType | ( | const ofShortPixels & | pix | ) |
◆ ofCloseFreeImage()
void ofCloseFreeImage | ( | ) |
Deallocates FreeImage resources.
Used internally during shutdown.
◆ ofGrabScreen() [1/2]
template<>
void ofGrabScreen | ( | ofPixels & | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
◆ ofGrabScreen() [2/2]
template<typename PixelType >
void ofGrabScreen | ( | ofPixels_< PixelType > & | pixels, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
◆ ofInitFreeImage()
void ofInitFreeImage | ( | bool | deinit = false | ) |
◆ ofLoadImage() [1/8]
bool ofLoadImage | ( | ofFloatPixels & | pix, |
const of::filesystem::path & | path, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofLoadImage() [2/8]
bool ofLoadImage | ( | ofFloatPixels & | pix, |
const ofBuffer & | buffer, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofLoadImage() [3/8]
bool ofLoadImage | ( | ofPixels & | pix, |
const of::filesystem::path & | path, | ||
const ofImageLoadSettings & | settings = ofImageLoadSettings() |
||
) |
- Todo:
- Needs documentation.
◆ ofLoadImage() [4/8]
bool ofLoadImage | ( | ofPixels & | pix, |
const ofBuffer & | buffer, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofLoadImage() [5/8]
bool ofLoadImage | ( | ofShortPixels & | pix, |
const of::filesystem::path & | path, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofLoadImage() [6/8]
bool ofLoadImage | ( | ofShortPixels & | pix, |
const ofBuffer & | buffer, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofLoadImage() [7/8]
bool ofLoadImage | ( | ofTexture & | tex, |
const of::filesystem::path & | path, | ||
const ofImageLoadSettings & | settings = ofImageLoadSettings() |
||
) |
- Todo:
- Needs documentation.
◆ ofLoadImage() [8/8]
bool ofLoadImage | ( | ofTexture & | tex, |
const ofBuffer & | buffer, | ||
const ofImageLoadSettings & | settings | ||
) |
◆ ofSaveImage() [1/6]
bool ofSaveImage | ( | const ofFloatPixels & | pix, |
const of::filesystem::path & | path, | ||
ofImageQualityType | qualityLevel = OF_IMAGE_QUALITY_BEST |
||
) |
- Todo:
- Needs documentation.
◆ ofSaveImage() [2/6]
bool ofSaveImage | ( | const ofFloatPixels & | pix, |
ofBuffer & | buffer, | ||
ofImageFormat | format, | ||
ofImageQualityType | qualityLevel | ||
) |
◆ ofSaveImage() [3/6]
bool ofSaveImage | ( | const ofPixels & | pix, |
const of::filesystem::path & | path, | ||
ofImageQualityType | qualityLevel = OF_IMAGE_QUALITY_BEST |
||
) |
- Todo:
- Needs documentation.
◆ ofSaveImage() [4/6]
bool ofSaveImage | ( | const ofPixels & | pix, |
ofBuffer & | buffer, | ||
ofImageFormat | format, | ||
ofImageQualityType | qualityLevel | ||
) |
◆ ofSaveImage() [5/6]
bool ofSaveImage | ( | const ofShortPixels & | pix, |
const of::filesystem::path & | path, | ||
ofImageQualityType | qualityLevel = OF_IMAGE_QUALITY_BEST |
||
) |
- Todo:
- Needs documentation.
◆ ofSaveImage() [6/6]
bool ofSaveImage | ( | const ofShortPixels & | pix, |
ofBuffer & | buffer, | ||
ofImageFormat | format, | ||
ofImageQualityType | qualityLevel | ||
) |
◆ ofToString()
template<>
std::string ofToString | ( | const ofImageType & | imgType | ) |
◆ putBmpIntoPixels()
template<typename PixelType >
void putBmpIntoPixels | ( | FIBITMAP * | bmp, |
ofPixels_< PixelType > & | pix, | ||
bool | swapOnLittleEndian = true , |
||
bool | bUsePassedPixelFormat = false |
||
) |