![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXImage.h>
Inheritance diagram for FXImage:
Public Methods | |
FXImage (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1) | |
Create an image. | |
FXuchar * | getData () const |
To get to the pixel data. | |
FXuint | getOptions () const |
To get to the option flags. | |
void | setOptions (FXuint opts) |
Change options. | |
FXint | getChannels () const |
Return number of channels, RGB or RGBA. | |
FXColor | getPixel (FXint x, FXint y) const |
Get pixel at x,y. | |
void | setPixel (FXint x, FXint y, FXColor color) |
Change pixel at x,y. | |
virtual void | create () |
Create image resource. | |
virtual void | detach () |
Detach image resource. | |
virtual void | destroy () |
Destroy image resource. | |
virtual void | restore () |
Restore client-side pixel buffer from image. | |
virtual void | render () |
Render the image from client-side pixel buffer. | |
virtual void | resize (FXint w, FXint h) |
Resize pixmap to the specified width and height. | |
virtual void | scale (FXint w, FXint h) |
Rescale pixels image to the specified width and height. | |
virtual void | mirror (FXbool horizontal, FXbool vertical) |
Mirror image horizontally and/or vertically. | |
virtual void | rotate (FXint degrees) |
Rotate image by degrees ccw. | |
virtual void | crop (FXint x, FXint y, FXint w, FXint h) |
Crop image to given rectangle. | |
virtual void | save (FXStream &store) const |
Save object to stream. | |
virtual void | load (FXStream &store) |
Load object from stream. | |
virtual void | savePixels (FXStream &store) const |
Save pixel data only. | |
virtual void | loadPixels (FXStream &store) |
Load pixel data only. | |
virtual | ~FXImage () |
Destructor. | |
Friends | |
class | FXDC |
class | FXDCWindow |
class | FXDrawable |
class | FXTopWindow |