Skip to content

IImageDecoder.TryDecode method

Attempts to decode the provided encoded bytes.

public bool TryDecode(ReadOnlySpan<byte> encoded, out Bgra32PixelBuffer bitmap)
parameter description
encoded Encoded image bytes.
bitmap Decoded bitmap on success.

true if decoding succeeded; otherwise, false.