User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layerpixel.lockpixels_itgis_extent_itgis_cscoordinatesystem_wordbool

ITGIS_LayerPixel.LockPixels method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerPixel.LockPixels | Methods | Properties

Locks a fragment of the pixel layer for updating.

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

Syntax

// C#
public ITGIS_LayerPixelLock LockPixels(
  ITGIS_Extent _ext,
  ITGIS_CSCoordinateSystem _cs,
  WordBool _writable
);
' VisualBasic
Public Function LockPixels(
  ByVal _ext As ITGIS_Extent,
  ByVal _cs As ITGIS_CSCoordinateSystem,
  ByVal _writable As WordBool
) As ITGIS_LayerPixelLock
// Oxygene
public
  function LockPixels(
    _ext : ITGIS_Extent;
    _cs : ITGIS_CSCoordinateSystem;
    _writable : WordBool
  ) : ITGIS_LayerPixelLock;

Parameters

Name Type Description
_ext ITGIS_Extent area to be locked; if bigger then layer extent then will be truncated to layer extent
_cs ITGIS_CSCoordinateSystem coordinate system of _cs; if nil then same as layer CS
_writable WordBool if true than layer will post back any changes in locked area; if write is not possible then TGIS_LayerPixelLock.Writable will be set accordingly

Result

Type Description
ITGIS_LayerPixelLock locked area

Remarks

Must be paired with UnlockPixels.

To speed-up operation, the function can return a larger area than requested. Use Bounds property of result value to obtain actual scope.

References

2023/02/22 01:08

Page Tools