Pixmap Class Reference

#include <Pt/Forms/Pixmap.h>

Back buffer drawing surface.

Inherits PaintSurface.

Public Member Functions

void reset (const Gfx::Image &image)
 Resets to an image.
 
void reset (const Gfx::SizeF &size)
 Resizes to a size in physical pixels.
 
const Gfx::ImageFormatformat () const
 Returns the image format.
 
const Gfx::SizeFsize () const
 Returns the size in physical pixels.
 
const Scaling & scaling () const
 Returns the scaling from logical to physical pixels.
 
Canvas * getCanvas (Canvas *canvas)
 Returns a canvas for backend drawing.
 
void sync ()
 Synchronizes pending operations to the surface.
 
void finish ()
 Finishes painting to the surface.
 

Protected Member Functions

virtual const Gfx::ImageFormatonGetFormat () const override
 Returns the image format.
 
virtual const Gfx::SizeFonGetSize () const override
 Returns the size in physical pixel.
 
virtual const Gfx::ScalingonGetScaling () const override
 Returns the scaling fro logical to physical pixels.
 
virtual Gfx::CanvasonGetCanvas (Gfx::Canvas *reuse) override
 Returns a reusable canvas instance.
 
virtual Gfx::CanvasonCreateCanvas (Gfx::Canvas *reuse) override
 Creates a Canvas.
 
virtual void onReleaseCanvas () override
 Releases the current Canvas.
 
virtual void onSync () override
 Synchronizes pending operations to the surface.
 
virtual void onFinish () override
 Finishes painting to the surface.
 
void invalidate ()
 Invalidates the currently active paint canvas.