API Reference
Class
RasterImageDecoder
Decodes dependency-free raster image formats into RGBA pixels.
Inheritance
- Object
- RasterImageDecoder
Methods
Decode(System.Byte[] data) #Decodes raster image bytes into RGBA pixels.
Parameters
- data System.Byte[]
- The encoded image bytes.
Returns
The decoded RGBA image.
Read 2 overloads
Read(System.String path) #Reads and decodes a raster image file.
Parameters
- path System.String
- The source image path.
Returns
The decoded RGBA image.
Read(System.IO.Stream stream) #Reads and decodes a raster image stream.
Parameters
- stream System.IO.Stream
- The source image stream.
Returns
The decoded RGBA image.
TryDecode(System.Byte[] data, ChartForgeX.Raster.RgbaImage@ image) #Attempts to decode raster image bytes.
Parameters
- data System.Byte[]
- The encoded image bytes.
- image ChartForgeX.Raster.RgbaImage@
- The decoded RGBA image when successful.
Returns
true when the image could be decoded.
TryRead 2 overloads
TryRead(System.String path, ChartForgeX.Raster.RgbaImage@ image) #Attempts to read and decode a raster image file.
Parameters
- path System.String
- The source image path.
- image ChartForgeX.Raster.RgbaImage@
- The decoded RGBA image when successful.
Returns
true when the image could be decoded.
TryRead(System.IO.Stream stream, ChartForgeX.Raster.RgbaImage@ image) #Attempts to read and decode a raster image stream.
Parameters
- stream System.IO.Stream
- The source image stream.
- image ChartForgeX.Raster.RgbaImage@
- The decoded RGBA image when successful.
Returns
true when the image could be decoded.