A class representing a graphic drawing pattern for filling areas.
![]() | PPattern () Create a pattern, loading it from the resource. |
![]() | PPattern ( Bits bits ) Create a pattern from the arbitrary set of bits. |
![]() | PPattern ( PCanvas & canvas, const PPixelImage & pix ) Create a pattern from the arbitrary pixel image using the canvas as the target device. |
![]() | Compare ( const PObject & obj ) const Determine if the two patterns are the same. |
![]() | GetDimensions () const Get the dimensions of the pattern. |
![]() | Bits [8] Type for bit array for a pattern. |
![]() | Overrides from class PObject |
![]() | New functions for class |
Construction
Common functions for containers
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A class representing a graphic drawing pattern for filling areas. This is used by the PCanvas class when drawing enclosed shapes such as rectangles, ellipses etc.This is very similar to the other "pixmap" class such as PCursor, or PImgIcon, but is more specialised for the purpose of filling a drawable area. This is relevant to some platforms that use a special type for this operation (eg MacOS).
If no resource identifier is specified then an empty pattern is created. That is a solid foreground colour is used.
typedef BYTE Bits[8]
PPattern( Bits bits )
PPattern( PCanvas & canvas, const PPixelImage & pix )
pix - Device independent image to convert. Overrides from class PObject
virtual Comparison Compare( const PObject & obj ) const
New functions for class
PDim GetDimensions() const
Alphabetic index HTML hierarchy of classes or Java