DK11 for Python | tatukgis.pdk.TGIS_BitmapAbstract.LockPixels | Methods | Properties
Prepare bitmap for direct pixel access operation.
# Python def LockPixels( self, _pixels: VarParameter, _writable: bool, _format: TGIS_BitmapFormat, _order: TGIS_BitmapLinesOrder ) -> None:
Name | Type | Description |
---|---|---|
_pixels | TGIS_Pixels | pixel buffer (allocated and maintained by LockPixels .. UnlockPixels |
_writable | bool | 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 |
Must be paired with UnlockPixels.