User Tools

Site Tools


api:dk11:delphi:fmx.gisframework.tgis_bitmapfmx.lockpixels_tgis_pixels_boolean_tgis_bitmapformat_tgis_bitmaplinesorder

Table of Contents

TGIS_BitmapFMX.LockPixels method

DK for Delphi | FMX.GisFramework.TGIS_BitmapFMX.LockPixels | Constructors | Fields | Methods | Properties

Prepare bitmap for direct pixel access operation.

Syntax

Overrides TGIS_BitmapAbstract.LockPixels.

// Delphi
public
  procedure LockPixels(
    var _pixels : TGIS_Pixels;
    const _writable : Boolean;
    const _format : TGIS_BitmapFormat;
    const _order : TGIS_BitmapLinesOrder
  ); override;
// C++ Builder
public:
  virtual void LockPixels(
    TGIS_Pixels* &_pixels,
    const bool _writable,
    TGIS_BitmapFormat* const _format,
    TGIS_BitmapLinesOrder* const _order
  );

Parameters

Name Type Description
_pixels TGIS_Pixels pixel buffer (allocated and maintained by LockPixels .. UnlockPixels
_writable Boolean True if pixels will be modified
_format TGIS_BitmapFormat desired format of locked pixels; on some platforms some system level operation required different pixel format then default
_order TGIS_BitmapLinesOrder desired line order of locked pixels; on some platforms some system level operation required different order then default

Remarks

Must be paired with UnlockPixels.

2025/01/31 01:05

Page Tools