CodeGlyphX logo
CodeGlyphX

API Reference

Class

JpegReader

Namespace CodeGlyphX.Rendering.Jpeg
Assembly CodeGlyphX
Modifiers static

Decodes baseline and progressive JPEG images to RGBA buffers (SOF0/SOF2, 8-bit, Huffman).

Inheritance

  • Object
  • JpegReader

Methods

DecodeRgba32 2 overloads
public static Byte[] DecodeRgba32(ReadOnlySpan<Byte> data, out Int32 width, out Int32 height) #
Returns: Byte[]

Decodes a JPEG image to an RGBA buffer.

Parameters

data System.ReadOnlySpan{System.Byte} requiredposition: 0
width System.Int32@ requiredposition: 1
height System.Int32@ requiredposition: 2
public static Byte[] DecodeRgba32(ReadOnlySpan<Byte> data, out Int32 width, out Int32 height, JpegDecodeOptions options) #
Returns: Byte[]

Decodes a JPEG image to an RGBA buffer.

Parameters

data System.ReadOnlySpan{System.Byte} requiredposition: 0
width System.Int32@ requiredposition: 1
height System.Int32@ requiredposition: 2
options CodeGlyphX.Rendering.Jpeg.JpegDecodeOptions requiredposition: 3
public static Boolean IsJpeg(ReadOnlySpan<Byte> data) #
Returns: Boolean

Returns true when the buffer looks like a JPEG.

Parameters

data System.ReadOnlySpan{System.Byte} requiredposition: 0