콘텐츠로 이동

IImageDecoder interface

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

Decodes encoded image bytes into a Bgra32PixelBuffer.

public interface IImageDecoder
name description
Id { get; } Gets a stable identifier for this decoder (for example “png”, “jpeg”, “webp”), used for diagnostics only.
CanDecode(…) Returns whether this decoder can handle the provided encoded bytes; implementations should be fast and avoid allocations.
ReadOrientation(…) Reads the image orientation from the encoded metadata without decoding pixels; Identity by default.
TryDecode(…) Attempts to decode the provided encoded bytes.