User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_bitmapabstract.lockpixels_tgis_pixels_boolean_tgis_bitmapformat_tgis_bitmaplinesorder

Table of Contents

TGIS_BitmapAbstract.LockPixels method

DK11 for .NET | TatukGIS.NDK.TGIS_BitmapAbstract.LockPixels | Fields | Methods | Properties

Prepare bitmap for direct pixel access operation.

Available also on: Delphi | Java | Python.

Syntax

// C#
public virtual abstract void LockPixels(
  ref Int32[] _pixels,
  bool _writable,
  TGIS_BitmapFormat _format,
  TGIS_BitmapLinesOrder _order
);
' VisualBasic
Public Overridable MustOverride Sub LockPixels(
  ByRef _pixels As Int32(),
  ByVal _writable As Boolean,
  ByVal _format As TGIS_BitmapFormat,
  ByVal _order As TGIS_BitmapLinesOrder
)
// Oxygene
public
  procedure LockPixels(
    var _pixels : TGIS_Pixels;
    _writable : Boolean;
    _format : TGIS_BitmapFormat;
    _order : TGIS_BitmapLinesOrder
  ); virtual; abstract;

Parameters

Name Type Description
_pixels Int32[]
TGIS_Pixels
pixel buffer (allocated and maintained by LockPixels .. UnlockPixels
_writable bool
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.

2022/12/20 01:19

Page Tools