User Tools

Site Tools


api:dk11:delphi:fmx.gisrenderer.tgis_rendererfmx.preparebitmapcache_tgis_pixels_tgis_extent_tpoint_integer_tgis_bitmapformat_tgis_bitmaplinesorder

Table of Contents

TGIS_RendererFmx.PrepareBitmapCache method

DK11 for Delphi | FMX.GisRenderer.TGIS_RendererFmx.PrepareBitmapCache | Constructors | Fields | Methods | Properties

Prepare renderer cache for topmost bitmap layers.

Syntax

Overrides TGIS_RendererAbstract.PrepareBitmapCache.

// Delphi
public
  function PrepareBitmapCache(
    const _bmp : TGIS_Pixels;
    const _extent : TGIS_Extent;
    const _size : TPoint;
    const _serial : Integer;
    const _format : TGIS_BitmapFormat;
    const _order : TGIS_BitmapLinesOrder
  ) : TGIS_RendererAbstractCache; override;
// C++ Builder
public:
  virtual TGIS_RendererAbstractCache* PrepareBitmapCache(
    TGIS_Pixels* const _bmp,
    TGIS_Extent* const _extent,
    TPoint* const _size,
    const int _serial,
    TGIS_BitmapFormat* const _format,
    TGIS_BitmapLinesOrder* const _order
  );

Parameters

Name Type Description
_bmp TGIS_Pixels array of bitmap pixels
_extent TGIS_Extent extent of _bmp
_size TPoint width/height of _bmp (in pixels)
_serial Integer serial number of layer.Params; to keep track of layer rendering parameters change
_format TGIS_BitmapFormat pixel format of _bmp array
_order TGIS_BitmapLinesOrder line order of _bmp array

Result

Type Description
TGIS_RendererAbstractCache returns cached object or nil, if cache is not supported by renderer; time live of the object is maintained by TGIS_ViewerWnd
2021/03/26 01:06

Page Tools