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

IPTCSurface.Unlock

Unlocks the surface memory after it was locked by a call to IPTCSurface.Lock.

Declaration

Source position: basesurfaced.inc line 45

procedure IPTCSurface.Unlock;

Description

Unlocks the surface memory after it was locked by a call to IPTCSurface.Lock. The pointer to the pixel memory retrieved during lock becomes invalid upon return from this function. If you need to access pixel memory again, you must lock the surface again with IPTCSurface.Lock. If the surface was not locked then a TPTCError exception will be raised.

Errors

TPTCError - a TPTCError exception is raised on failure.