C# Class SciterSharp.SciterImage

Inheritance: IDisposable
Datei anzeigen Open project: MISoftware/SciterSharp Class Usage Examples

Public Methods

Method Description
Clear ( RGBAColor clr ) : void
Dispose ( ) : void
Save ( uint bpp, uint quality ) : byte[]

Save this image to png/jpeg stream of bytes

SciterImage ( Bitmap bmp ) : System.Drawing
SciterImage ( IntPtr data, uint width, uint height, bool withAlpha ) : System.Drawing

Loads image from RAW BGRA pixmap data Size of pixmap data is pixmapWidth*pixmapHeight*4 construct image from B[n+0],G[n+1],R[n+2],A[n+3] data

SciterImage ( byte data ) : System.Drawing

Loads image from PNG or JPG image buffer

SciterImage ( uint width, uint height, bool withAlpha ) : System.Drawing

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SciterImage ( ) : System.Drawing

Method Details

Clear() public method

public Clear ( RGBAColor clr ) : void
clr RGBAColor
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Save() public method

Save this image to png/jpeg stream of bytes
public Save ( uint bpp, uint quality ) : byte[]
bpp uint 24 or 32 if alpha needed
quality uint png: 0, jpeg: 10 - 100
return byte[]

SciterImage() public method

public SciterImage ( Bitmap bmp ) : System.Drawing
bmp System.Drawing.Bitmap
return System.Drawing

SciterImage() public method

Loads image from RAW BGRA pixmap data Size of pixmap data is pixmapWidth*pixmapHeight*4 construct image from B[n+0],G[n+1],R[n+2],A[n+3] data
public SciterImage ( IntPtr data, uint width, uint height, bool withAlpha ) : System.Drawing
data System.IntPtr
width uint
height uint
withAlpha bool
return System.Drawing

SciterImage() public method

Loads image from PNG or JPG image buffer
public SciterImage ( byte data ) : System.Drawing
data byte
return System.Drawing

SciterImage() public method

public SciterImage ( uint width, uint height, bool withAlpha ) : System.Drawing
width uint
height uint
withAlpha bool
return System.Drawing