C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.PngEncoder

PngEncoder class courtesy of Joe Stegman and opmized by Nikola: http://blogs.msdn.com/nikola/archive/2009/03/04/silverlight-super-fast-dymanic-image-generation-code-revisited.aspx
显示文件 Open project: Esri/arcgis-toolkit-sl-wpf Class Usage Examples

Public Methods

Method Description
GetImageStream ( ) : Stream
GetRowStart ( int row ) : int
PngEncoder ( int width, int height ) : System
SetPixelAtRowStart ( int col, int rowStart, byte red, byte green, byte blue, byte alpha ) : void
SetPixelSlow ( int col, int row, byte red, byte green, byte blue, byte alpha ) : void

Private Methods

Method Description
PrepareBuffer ( int width, int height ) : void

Method Details

GetImageStream() public method

public GetImageStream ( ) : Stream
return Stream

GetRowStart() public method

public GetRowStart ( int row ) : int
row int
return int

PngEncoder() public method

public PngEncoder ( int width, int height ) : System
width int
height int
return System

SetPixelAtRowStart() public method

public SetPixelAtRowStart ( int col, int rowStart, byte red, byte green, byte blue, byte alpha ) : void
col int
rowStart int
red byte
green byte
blue byte
alpha byte
return void

SetPixelSlow() public method

public SetPixelSlow ( int col, int row, byte red, byte green, byte blue, byte alpha ) : void
col int
row int
red byte
green byte
blue byte
alpha byte
return void