Edit

Share via


CVPixelBuffer.Lock Method

Definition

Overloads

Lock(CVOptionFlags)
Obsolete.

Locks the storage for the pixel buffer.

Lock(CVPixelBufferLock)

Lock(CVOptionFlags)

Caution

Use 'Lock (CVPixelBufferLock)' instead.

Locks the storage for the pixel buffer.

[System.Obsolete("Use 'Lock (CVPixelBufferLock)' instead.")]
public CoreVideo.CVReturn Lock (CoreVideo.CVOptionFlags lockFlags);
member this.Lock : CoreVideo.CVOptionFlags -> CoreVideo.CVReturn

Parameters

lockFlags
CVOptionFlags

Returns

Status code for the operation

Attributes

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 CVPixelBufferLock.ReadOnly, you must also pass this value to Unlock.

Applies to

Lock(CVPixelBufferLock)

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

Parameters

lockFlags
CVPixelBufferLock

Returns

Applies to