CVPixelBuffer.Lock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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