Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TPainter
Inherited By:
None.
Purpose:
The TBitmapGlyphPainter class derives from the base class that establishes painters. Painters are responsible for colors and patterns for graphics and images, and are associated to frame buffers. The TBitmapGlyphPainter class handles the rendering of the font elements (glyphs).
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Derive from this class for specialized bitmap glyph painter for different kinds of pixel buffers. One example of these derived classes is TGenericBitmapGlyphPainter.
Concurrency:
Multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
virtual ~ TBitmapGlyphPainter ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
- virtual void PaintGlyph (GDevCoordinate dsty, GDevCoordinate dstx, const TGlyphPixmapMetrics & metrics, GlyphPixmapPtr pixmapBits)
- virtual void PaintGlyph (GDevCoordinate dsty, GDevCoordinate dstx, const TGlyphPixmapMetrics & metrics, GlyphPixmapPtr pixmapBits, const TLongRect & rectClipper)
Interface Category:
API.
Purpose:
- Renders one glyph to the device.
- Renders one glyph to the device, clipped to the specified rectangular region.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- GDevCoordinate dsty -The x-component of the location (in device coordinates) where the glyph is to be rendered.
- GDevCoordinate dstx -The y-component of the location (in device coordinates) where the glyph is to be rendered.
- const TGlyphPixmapMetrics & metrics -The information regarding the pixel map of the glyph to be rendered.
- GlyphPixmapPtr pixmapBits -The glyph's pixel data.
- GDevCoordinate dsty -The x-component of the location (in device coordinates) where the glyph is to be rendered.
- GDevCoordinate dstx -The y-component of the location (in device coordinates) where the glyph is to be rendered.
- const TGlyphPixmapMetrics & metrics -The information regarding the pixel map of the glyph to be rendered.
- GlyphPixmapPtr pixmapBits -The glyph's pixel data.
- const TLongRect & rectClipper -The clipping region.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
- TBitmapGlyphPainter ()
- TBitmapGlyphPainter (const TBitmapGlyphPainter & source)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
Calling Context:
- Called by the stream-in operators and can be called directly.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
const TBitmapGlyphPainter & operator =( const TBitmapGlyphPainter & source)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
- const TBitmapGlyphPainter & source -The object whose contents are to be assigned to this object.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.