C# Класс Imazen.WebP.SimpleEncoder

Encodes Bitmap objects into WebP format
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Encode ( Bitmap from, Stream to, float quality, bool noAlpha ) : void
Encode ( Bitmap b, float quality, bool noAlpha, IntPtr &result, long &length ) : void

Описание методов

Encode() публичный Метод

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
Результат void

Encode() публичный Метод

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
Результат void

GetEncoderVersion() публичный статический Метод

public static GetEncoderVersion ( ) : string
Результат string

SimpleEncoder() публичный Метод

public SimpleEncoder ( ) : System
Результат System