콘텐츠로 이동

Bgra32PixelBuffer structure

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

BGRA32 pixel buffer (8 bits per channel, straight alpha, tightly packed) that carries decoder output and raw pixel input across the API boundary.

public struct Bgra32PixelBuffer : IEquatable<Bgra32PixelBuffer>
parameter description
WidthPx Bitmap width in pixels.
HeightPx Bitmap height in pixels.
Data Pixel data buffer in BGRA byte order.
HasAlpha Whether the pixels carry a meaningful alpha channel; false for opaque-only formats (JPEG, RGB PNG, sub-32-bit BMP) lets consumers skip per-pixel alpha scans and take the opaque blending path.
name description
Bgra32PixelBuffer(…) BGRA32 pixel buffer (8 bits per channel, straight alpha, tightly packed) that carries decoder output and raw pixel input across the API boundary.
Data { get; set; } Pixel data buffer in BGRA byte order.
HasAlpha { get; set; } Whether the pixels carry a meaningful alpha channel; false for opaque-only formats (JPEG, RGB PNG, sub-32-bit BMP) lets consumers skip per-pixel alpha scans and take the opaque blending path.
HeightPx { get; set; } Bitmap height in pixels.
StrideBytes { get; } Gets the stride in bytes per row (WidthPx * 4, tightly packed).
WidthPx { get; set; } Bitmap width in pixels.