C# Class Nine.Imaging.Encoding.PaletteIndexReader

A color reader for reading palette indices from the PNG file.
Inheritance: IColorReader
Afficher le fichier Open project: yufeih/Nine.Imaging

Méthodes publiques

Méthode Description
PaletteIndexReader ( Array palette, Array paletteAlpha )

Initializes a new instance of the PaletteIndexReader class.

ReadScanline ( Array scanline, Array pixels, Nine.Imaging.Encoding.PngHeader header ) : void

Reads the specified scanline.

Method Details

PaletteIndexReader() public méthode

Initializes a new instance of the PaletteIndexReader class.
public PaletteIndexReader ( Array palette, Array paletteAlpha )
palette Array The palette as simple byte array. It will contains 3 values for each /// color, which represents the red-, the green- and the blue channel.
paletteAlpha Array The alpha palette. Can be null, if the image does not have an /// alpha channel and can contain less entries than the number of colors in the palette.

ReadScanline() public méthode

Reads the specified scanline.
public ReadScanline ( Array scanline, Array pixels, Nine.Imaging.Encoding.PngHeader header ) : void
scanline Array The scanline.
pixels Array The pixels, where the colors should be stored in RGBA format.
header Nine.Imaging.Encoding.PngHeader The header, which contains information about the png file, like /// the width of the image and the height.
Résultat void