Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXBitmap.h>
Inheritance diagram for FX::FXBitmap:
Public Member Functions | |
FXBitmap (FXApp *a, const void *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1) | |
FXuchar * | getData () const |
FXuint | getOptions () const |
void | setOptions (FXuint opts) |
FXbool | getPixel (FXint x, FXint y) const |
void | setPixel (FXint x, FXint y, FXbool color) |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | render () |
virtual void | release () |
virtual void | resize (FXint w, FXint h) |
virtual void | scale (FXint w, FXint h) |
virtual void | mirror (FXbool horizontal, FXbool vertical) |
virtual void | rotate (FXint degrees) |
virtual void | crop (FXint x, FXint y, FXint w, FXint h) |
virtual void | fill (FXbool color) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual FXbool | savePixels (FXStream &store) const |
virtual FXbool | loadPixels (FXStream &store) |
virtual | ~FXBitmap () |
It supports two representations of these pixels: a client-side pixel buffer, and a server-side pixmap which is stored in an organization directly compatible with the screen, for fast drawing onto the device. The server-side representation is not directly accessible from the current process as it lives in the process of the X Server or GDI. The client-side pixel array is of size height x (width+7)/8 bytes, in other words 8 pixels packed into a single byte, starting at bit 0 on the left.
See also:
|
Create a bitmap. If a client-side pixel buffer has been specified, the bitmap does not own the pixel buffer unless the BITMAP_OWNED flag is set. If the BITMAP_OWNED flag is set but a NULL pixel buffer is passed, a pixel buffer will be automatically created and will be owned by the bitmap. The flags BITMAP_SHMI and BITMAP_SHMP may be specified for large bitmaps to instruct render() to use shared memory to communicate with the server. |
|
Cleanup.
|
|
To get to the pixel data.
|
|
To get to the option flags.
|
|
Change options.
|
|
Get pixel at x,y.
|
|
Change pixel at x,y.
|
|
Create the server side pixmap, then call render() to fill it with the pixel data from the client-side buffer. After the server-side image has been created, the client-side pixel buffer will be deleted unless BITMAP_KEEP has been specified. If the pixel buffer is not owned, i.e. the flag BITMAP_OWNED is not set, the pixel buffer will not be deleted. Reimplemented from FX::FXId. |
|
Detach the server side pixmap from the Bitmap. Afterwards, the Bitmap is left as if it never had a server-side resources. Reimplemented from FX::FXId. |
|
Destroy the server-side pixmap. The client-side pixel buffer is not affected. Reimplemented from FX::FXId. |
|
Render the server-side representation of the bitmap from client-side pixels.
|
|
Release the client-side pixels buffer, free it if it was owned. If it is not owned, the image just forgets about the buffer. |
|
Resize bitmap to the specified width and height; the contents become undefined.
Reimplemented from FX::FXDrawable. |
|
Rescale pixels to the specified width and height.
|
|
Mirror bitmap horizontally and/or vertically.
|
|
Rotate bitmap by degrees ccw.
|
|
Crop bitmap to given rectangle.
|
|
Fill bitmap with uniform value.
|
|
Save object to stream.
Reimplemented from FX::FXDrawable. |
|
Load object from stream.
Reimplemented from FX::FXDrawable. |
|
Save pixel data only.
|
|
Load pixel data only.
|
Copyright © 1997-2004 Jeroen van der Zijp |