C# Class Imazen.WebP.SimpleEncoder

Encodes Bitmap objects into WebP format
Mostra file Open project: imazen/libwebp-net Class Usage Examples

Public Methods

Method Description
Encode ( Bitmap from, Stream to, float quality ) : void

Encodes the given RGB(A) bitmap to the given stream. Specify quality = -1 for lossless, otherwise specify a value between 0 and 100.

Encode ( Bitmap b, float quality, IntPtr &result, long &length ) : void

Encodes the given RGB(A) bitmap to the given stream. Specify quality = -1 for lossless, otherwise specify a value between 0 and 100.

GetEncoderVersion ( ) : string
SimpleEncoder ( ) : System

Private Methods

Method Description
Encode ( Bitmap from, Stream to, float quality, bool noAlpha ) : void
Encode ( Bitmap b, float quality, bool noAlpha, IntPtr &result, long &length ) : void

Method Details

Encode() public method

Encodes the given RGB(A) bitmap to the given stream. Specify quality = -1 for lossless, otherwise specify a value between 0 and 100.
public Encode ( Bitmap from, Stream to, float quality ) : void
from System.Drawing.Bitmap
to Stream
quality float
return void

Encode() public method

Encodes the given RGB(A) bitmap to the given stream. Specify quality = -1 for lossless, otherwise specify a value between 0 and 100.
public Encode ( Bitmap b, float quality, IntPtr &result, long &length ) : void
b System.Drawing.Bitmap
quality float
result System.IntPtr
length long
return void

GetEncoderVersion() public static method

public static GetEncoderVersion ( ) : string
return string

SimpleEncoder() public method

public SimpleEncoder ( ) : System
return System