User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.canvasdrawbitmap_tgis_pixels_tpoint_trect_tgis_bitmapformat_tgis_bitmaplinesorder

Table of Contents



TGIS_RendererAbstract.CanvasDrawBitmap(TGIS_Pixels; TPoint; TRect; TGIS_BitmapFormat; TGIS_BitmapLinesOrder) method

DK for Delphi | GisRendererAbstract.TGIS_RendererAbstract.CanvasDrawBitmap | Overloads | Constructors | Fields | Methods | Properties

Draws a bitmap on the canvas.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// 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 */;

Parameters

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.

Remarks

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
)

References

2026/10/31 23:01

Page Tools