#include <ofImage.h>
List of all members.
Public Member Functions |
| ofImage () |
virtual | ~ofImage () |
void | allocate (int w, int h, int type) |
void | clear () |
| ofImage (const ofImage &mom) |
ofImage & | operator= (const ofImage &mom) |
void | clone (const ofImage &mom) |
void | setUseTexture (bool bUse) |
ofTexture & | getTextureReference () |
bool | loadImage (string fileName) |
void | saveImage (string fileName) |
unsigned char * | getPixels () |
void | setFromPixels (unsigned char *pixels, int w, int h, int newType, bool bOrderIsRGB=true) |
void | setImageType (int type) |
void | resize (int newWidth, int newHeight) |
void | grabScreen (int x, int y, int w, int h) |
void | update () |
void | setAnchorPercent (float xPct, float yPct) |
void | setAnchorPoint (int x, int y) |
void | resetAnchor () |
void | draw (float x, float y, float w, float h) |
void | draw (float x, float y) |
float | getHeight () |
float | getWidth () |
Public Attributes |
int | width |
int | height |
int | bpp |
int | type |
Protected Member Functions |
bool | loadImageIntoPixels (string fileName, ofPixels &pix) |
void | saveImageFromPixels (string fileName, ofPixels &pix) |
void | changeTypeOfPixels (ofPixels &pix, int newType) |
void | resizePixels (ofPixels &pix, int newWidth, int newHeight) |
FIBITMAP * | getBmpFromPixels (ofPixels &pix) |
void | putBmpIntoPixels (FIBITMAP *bmp, ofPixels &pix) |
void | allocatePixels (ofPixels &pix, int width, int height, int bpp) |
void | swapRgb (ofPixels &pix) |
Protected Attributes |
ofPixels | myPixels |
bool | bUseTexture |
ofTexture | tex |
Constructor & Destructor Documentation
ofImage::~ofImage |
( |
) |
[virtual] |
ofImage::ofImage |
( |
const ofImage & |
mom ) |
|
Member Function Documentation
void ofImage::allocate |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
type |
|
) |
| |
void ofImage::allocatePixels |
( |
ofPixels & |
pix, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
bpp |
|
) |
| [inline, protected] |
void ofImage::changeTypeOfPixels |
( |
ofPixels & |
pix, |
|
|
int |
newType |
|
) |
| [protected] |
void ofImage::clone |
( |
const ofImage & |
mom ) |
|
void ofImage::draw |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
w, |
|
|
float |
h |
|
) |
| [virtual] |
void ofImage::draw |
( |
float |
x, |
|
|
float |
y |
|
) |
| [virtual] |
FIBITMAP * ofImage::getBmpFromPixels |
( |
ofPixels & |
pix ) |
[protected] |
float ofImage::getHeight |
( |
) |
[virtual] |
unsigned char * ofImage::getPixels |
( |
) |
[virtual] |
ofTexture & ofImage::getTextureReference |
( |
) |
[virtual] |
float ofImage::getWidth |
( |
) |
[virtual] |
void ofImage::grabScreen |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
bool ofImage::loadImage |
( |
string |
fileName ) |
|
bool ofImage::loadImageIntoPixels |
( |
string |
fileName, |
|
|
ofPixels & |
pix |
|
) |
| [protected] |
void ofImage::putBmpIntoPixels |
( |
FIBITMAP * |
bmp, |
|
|
ofPixels & |
pix |
|
) |
| [protected] |
void ofImage::resetAnchor |
( |
) |
[virtual] |
void ofImage::resize |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
void ofImage::resizePixels |
( |
ofPixels & |
pix, |
|
|
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| [protected] |
void ofImage::saveImage |
( |
string |
fileName ) |
|
void ofImage::saveImageFromPixels |
( |
string |
fileName, |
|
|
ofPixels & |
pix |
|
) |
| [protected] |
void ofImage::setAnchorPercent |
( |
float |
xPct, |
|
|
float |
yPct |
|
) |
| [virtual] |
void ofImage::setAnchorPoint |
( |
int |
x, |
|
|
int |
y |
|
) |
| [virtual] |
void ofImage::setFromPixels |
( |
unsigned char * |
pixels, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
newType, |
|
|
bool |
bOrderIsRGB = true |
|
) |
| |
void ofImage::setImageType |
( |
int |
type ) |
|
void ofImage::setUseTexture |
( |
bool |
bUse ) |
|
void ofImage::swapRgb |
( |
ofPixels & |
pix ) |
[inline, protected] |
Member Data Documentation
The documentation for this class was generated from the following files: