C# Class SciterSharp.SciterImage

Inheritance: IDisposable
Afficher le fichier Open project: MISoftware/SciterSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
SciterImage ( ) : System.Drawing

Method Details

Clear() public méthode

public Clear ( RGBAColor clr ) : void
clr RGBAColor
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Save() public méthode

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
Résultat byte[]

SciterImage() public méthode

public SciterImage ( Bitmap bmp ) : System.Drawing
bmp System.Drawing.Bitmap
Résultat System.Drawing

SciterImage() public méthode

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
Résultat System.Drawing

SciterImage() public méthode

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

SciterImage() public méthode

public SciterImage ( uint width, uint height, bool withAlpha ) : System.Drawing
width uint
height uint
withAlpha bool
Résultat System.Drawing