#include <Pt/Forms/Pixmap.h>
Platform pixmap implementation. More...
Public Member Functions | |
| virtual | ~IPixmapImpl () |
| Destructor. | |
| virtual void | reset (const Gfx::Image &image)=0 |
| Resets the pixmap from image. | |
| virtual void | reset (const Gfx::SizeF &size)=0 |
| Resets the pixmap to size in physical pixels. | |
| virtual void | reset ()=0 |
| Clears the pixmap. | |
| virtual void | getBitmap (Gfx::Bitmap &bitmap, const Gfx::RectF &rect) const =0 |
| Copies rect into bitmap. | |
| virtual void | setScaleFactor (double scaleFactor)=0 |
| Sets the scale factor to scaleFactor. | |
| virtual void | drawPixmap (Gfx::Canvas &canvas, const Gfx::PointF &to, const Pixmap &pm, const Gfx::RectF *rect)=0 |
| Draws pm onto canvas at to. | |
| virtual const Gfx::ImageFormat & | format () const =0 |
| Returns the image format. | |
| virtual const Gfx::SizeF & | size () const =0 |
| Returns the size in physical pixels. | |
| virtual const Gfx::Scaling & | scaling () const =0 |
| Returns the scaling from logical to physical pixels. | |
| virtual Gfx::Canvas * | getCanvas (Gfx::Canvas *reuse)=0 |
| Returns a canvas, reusing reuse when possible. | |
| virtual Gfx::Canvas * | createCanvas (Gfx::Canvas *reuse)=0 |
| Creates a canvas, reusing reuse when possible. | |
| virtual void | releaseCanvas ()=0 |
| Releases the current canvas. | |
| virtual void | sync ()=0 |
| Synchronizes pending drawing operations. | |
| virtual void | finish ()=0 |
| Finishes painting on the pixmap. | |
GraphicsBackend creates this object. Ordinary applications do not call this API.
|
pure virtual |
When rect is not null, only that region of the pixmap is drawn.