DK for Delphi | GisRendererAbstract.TGIS_RendererAbstract.CanvasDrawBitmap | Overloads | Constructors | Fields | Methods | Properties
Draws a bitmap on the canvas.
// Delphi public procedure CanvasDrawBitmap( const _bmp : TGIS_Pixels; const _size : TPoint; const _dst : TRect; const _format : TGIS_BitmapFormat; const _order : TGIS_BitmapLinesOrder ); overload; virtual; abstract;
// C++ Builder public: virtual void CanvasDrawBitmap( TGIS_Pixels* const _bmp, TPoint* const _size, TRect* const _dst, TGIS_BitmapFormat* const _format, TGIS_BitmapLinesOrder* const _order ) = 0 /* overload */;
| Name | Type | Description |
|---|---|---|
| _bmp | TGIS_Pixels | Array of bitmap pixels. |
| _size | TPoint | Width and height of _bmp in pixels. |
| _dst | TRect | Destination rectangle in canvas pixels; scaling is applied if required. |
| _format | TGIS_BitmapFormat | Pixel format of the _bmp array. |
| _order | TGIS_BitmapLinesOrder | Scanline order of the _bmp array. |
PURPOSE: Draw a raw bitmap pixel buffer into a destination rectangle on the rendering canvas.
BEHAVIOR: Renders pixels from the supplied source buffer using the specified bitmap format and scanline order. The image is scaled to fit the destination rectangle when source and destination sizes differ.
USAGE: Draw a pixel buffer as a screen symbol.
rdr.CanvasDrawBitmap( pixels, Point(5, 5), Rect(pt.X, pt.Y, pt.X + 20, pt.Y + 20), TGIS_BitmapFormat.ARGB, TGIS_BitmapLinesOrder.Down )