Share via


CVPixelBuffer.Lock(CVPixelBufferLock) Method

Definition

Locks the storage for the pixel buffer.

public CoreVideo.CVReturn Lock(CoreVideo.CVPixelBufferLock lockFlags);
member this.Lock : CoreVideo.CVPixelBufferLock -> CoreVideo.CVReturn

Parameters

lockFlags
CVPixelBufferLock

The flags for the lock.

Returns

Status code for the operation

Remarks

You must call this method to access the pixel buffer from the CPU. Calls to this method must be balanced with calls to Unlock(CVPixelBufferLock). If the lockFlags contains ReadOnly, you must also pass this value to Unlock(CVPixelBufferLock).

Applies to