C# 클래스 Nine.Imaging.Encoding.PaletteIndexReader

A color reader for reading palette indices from the PNG file.
상속: IColorReader
파일 보기 프로젝트 열기: yufeih/Nine.Imaging

공개 메소드들

메소드 설명
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.

메소드 상세

PaletteIndexReader() 공개 메소드

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() 공개 메소드

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.
리턴 void