ILockableImage

References
public interface ILockableImage
Interface for an image that can have its data locked for direct access

Methods

Lock

#
BitmapData Lock()
Locks the data of the image to directly access the bytes of the image
Remarks: This locks the data to read and write to directly using unsafe pointers. After reading or updating the data, you must call Unlock(BitmapData) to unlock the data.
A BitmapData object with information about the locked data

Unlock

#
void Unlock(BitmapData bitmapData)
Unlocks the previously locked data
Remarks: This will unlock the data, and in some platforms write the data back to the image. You must call this method before using the bitmap again.
bitmapData (BitmapData)The data previously locked via the Lock() method