[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

IPTCSurface.Lock

Locks the surface and returns a pointer to the locked surface pixel memory.

Declaration

Source position: basesurfaced.inc line 44

function IPTCSurface.Lock: Pointer;

Function result

A pointer to the surface pixel memory.

Description

Locks the surface and returns a pointer to the locked surface pixel memory. Every successful lock must be followed by a call to IPTCSurface.Unlock. Call unlock once you are finished with the surface memory. Only one lock per surface object is permitted at any one time. If the surface is already locked a TPTCError exception will be raised.

Errors

TPTCError - a TPTCError exception is raised on failure.