C# Class ImageTools.IO.Png.PngColorTypeInformation

Contains information that are required when loading a png with a specific color type.
显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CreateColorReader ( byte palette, byte paletteAlpha ) : IColorReader

Creates the color reader for the color type where this object is create for.

PngColorTypeInformation ( int scanlineFactor, int supportedBitDepths, MyFunc scanlineReaderFactory ) : System

Initializes a new instance of the PngColorTypeInformation class with the scanline factory, the function to create the color reader and the supported bit depths.

Method Details

CreateColorReader() public method

Creates the color reader for the color type where this object is create for.
public CreateColorReader ( byte palette, byte paletteAlpha ) : IColorReader
palette byte The palette of the image. Can be null when no palette is used.
paletteAlpha byte The alpha palette of the image. Can be null when /// no palette is used for the image or when the image has no alpha.
return IColorReader

PngColorTypeInformation() public method

Initializes a new instance of the PngColorTypeInformation class with the scanline factory, the function to create the color reader and the supported bit depths.
public PngColorTypeInformation ( int scanlineFactor, int supportedBitDepths, MyFunc scanlineReaderFactory ) : System
scanlineFactor int The scanline factor.
supportedBitDepths int The supported bit depths.
scanlineReaderFactory MyFunc The factory to create the color reader.
return System