#include <faith/pixmap.h>
Inheritance diagram for Faith::Pixmap:

Public Member Functions | |
| Pixmap () | |
| Pixmap (const Image &image) | |
| Pixmap (const Pixmap &pixmap) | |
| Pixmap (int w, int h, int depth=-1) | |
| Pixmap (const Size &size, int depth=-1) | |
| virtual | ~Pixmap () |
| virtual Handle | handle () |
| void | resize (int w, int h) |
| Pixmap & | operator= (const Pixmap ©) |
| Pixmap & | operator= (const Image &image) |
| const Bitmap * | mask () const |
| void | setMask (const Bitmap &mask) |
| Size | size () const |
| Rect | rect () const |
| int | width () const |
| int | height () const |
| int | depth () const |
| bool | isNull () const |
| Faith::Image | toImage (int fromx=0, int fromy=0, int w=-1, int h=-1) const |
| Faith::Image | convertToImage () const |
| void | fromImage (const Image &image) |
| void | convertFromImage (const Image &image) |
| void | detach () const |
| void | reset () |
Protected Member Functions | |
| virtual void | init (const Size &size, int depth) |
a pixmap is like an image, except it doesn't exist in your application, but on the X-server. That means copying it to a widget is very fast, and you can also use a Painter object on it just like a widget.
| Faith::Pixmap::Pixmap | ( | ) |
| Faith::Pixmap::Pixmap | ( | const Image & | image | ) |
| Faith::Pixmap::Pixmap | ( | const Pixmap & | pixmap | ) |
a copy of the given image
| Faith::Pixmap::Pixmap | ( | int | w, | |
| int | h, | |||
| int | depth = -1 | |||
| ) |
create an image with undefined content
| depth | is the depth of this pixmap, or -1 to use the default |
| Faith::Pixmap::Pixmap | ( | const Size & | size, | |
| int | depth = -1 | |||
| ) |
create an image with undefined content
| depth | is the depth of this pixmap, or -1 to use the default |
| virtual Faith::Pixmap::~Pixmap | ( | ) | [virtual] |
| void Faith::Pixmap::convertFromImage | ( | const Image & | image | ) | [inline] |
same as above
| Faith::Image Faith::Pixmap::convertToImage | ( | ) | const [inline] |
The same as above
| int Faith::Pixmap::depth | ( | ) | const |
| void Faith::Pixmap::detach | ( | ) | const |
| void Faith::Pixmap::fromImage | ( | const Image & | image | ) |
Converts image (slowly!) to a pixmap, and assigns it to me
| virtual Handle Faith::Pixmap::handle | ( | ) | [virtual] |
Implements Faith::PaintDevice.
| int Faith::Pixmap::height | ( | ) | const [inline] |
| virtual void Faith::Pixmap::init | ( | const Size & | size, | |
| int | depth | |||
| ) | [protected, virtual] |
Reimplemented in Faith::Bitmap.
| bool Faith::Pixmap::isNull | ( | ) | const |
| const Bitmap* Faith::Pixmap::mask | ( | ) | const |
same as convertFromImage
| void Faith::Pixmap::reset | ( | ) |
nullifies the image. Deletes the data if necessary. isNull() returns true
| void Faith::Pixmap::resize | ( | int | w, | |
| int | h | |||
| ) |
changes the image, either cropping or expanding it, if there are new pixels, their value is undefined
| void Faith::Pixmap::setMask | ( | const Bitmap & | mask | ) |
When drawing the Pixmap, bits that are not set in mask will not be drawn (will be transparent)
| Size Faith::Pixmap::size | ( | ) | const |
| Faith::Image Faith::Pixmap::toImage | ( | int | fromx = 0, |
|
| int | fromy = 0, |
|||
| int | w = -1, |
|||
| int | h = -1 | |||
| ) | const |
converts the part of this pixmap as specified by Rect(fromx, fromy, w, h) to an image
| int Faith::Pixmap::width | ( | ) | const [inline] |
1.4.7