User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_layerpixel.lockpixels_trect_boolean

TGIS_LayerPixel.LockPixels(TRect, bool) method

DK11 for Java | tatukgis.jdk.TGIS_LayerPixel.LockPixels | Overloads | Constructors | Fields | Methods | Properties | Events

Locks a fragment of the pixel layer for updating.

Available also on: Delphi | .NET | ActiveX.

Syntax

// Java
public TGIS_LayerPixelLock LockPixels(
  TRect _rct,
  bool _writable
);
// Oxygene
public
  function LockPixels(
    _rct : TRect;
    _writable : Boolean
  ) : TGIS_LayerPixelLock; virtual;

Parameters

Name Type Description
_rct TRect rectangle on raster to be locked; if bigger then raster size then will be truncated
_writable bool
Boolean
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
TGIS_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.

If _rct is defined as (0,2,0,2) it meanans that that colum/row 0 and 1 are included, but not column/row 2.

References

2020/05/07 01:13

Page Tools