User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_bitmap.lockpixels_tgis_pixels_boolean_tgis_bitmapformat_tgis_bitmaplinesorder

Table of Contents

TGIS_Bitmap.LockPixels(TGIS_Pixels; Boolean; TGIS_BitmapFormat; TGIS_BitmapLinesOrder) method

DK for Delphi | GisTypesUI.TGIS_Bitmap.LockPixels | Overloads | Constructors | Methods | Properties

Lock and return raw bitmap pixels.

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

Syntax

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

Parameters

Name Type Description
_pixels TGIS_Pixels pixel array that receives the locked bitmap data
_writable Boolean if True, changes made to the locked pixel array are written back to the bitmap during UnlockPixels
_format TGIS_BitmapFormat format of the locked pixel array; typically ARGB or ABGR
_order TGIS_BitmapLinesOrder row order of the locked pixel array
2026/07/11 00:44

Page Tools