콘텐츠로 이동

PixelBufferLock class

이 콘텐츠는 아직 번역되지 않았습니다.

Represents a locked pixel buffer snapshot and optional dirty region metadata.

public sealed class PixelBufferLock : IDisposable
name description
PixelBufferLock(…) Creates a lock over buffer that invokes release once on Dispose.
Buffer { get; } Gets the backing byte buffer containing pixel data.
DirtyRegion { get; } Gets the dirty region since the last lock, or null when the entire buffer should be treated as dirty.
PixelHeight { get; } Gets the buffer height in pixels.
PixelWidth { get; } Gets the buffer width in pixels.
StrideBytes { get; } Gets the stride in bytes per row.
Version { get; } Gets the source version captured at lock time.
Dispose() Releases the lock.