Image class
Inheritance:
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
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
Image class
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
- Direct child classes:
- FXXPMImage
FXTIFImage
FXTGAImage
FXRGBImage
FXPNGImage
FXPCXImage
FXJPGImage
FXIcon
FXICOImage
FXGIFImage
FXBMPImage
- Friends:
- class FXDCWindow
class FXDrawable
class FXTopWindow
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.