C# Класс BitMiracle.LibJpeg.Jpeg

Internal wrapper for classic jpeg compressor and decompressor
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Compress ( IRawImage source, Stream output ) : void

Compresses any image described as ICompressSource to JPEG

Decompress ( Stream jpeg, IDecompressDestination destination ) : void

Decompresses JPEG image to any image described as ICompressDestination

SetMarkerProcessor ( int markerCode, MarkerParser routine ) : void

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

Метод Описание
applyParameters ( CompressionParameters parameters ) : void
applyParameters ( DecompressionParameters parameters ) : void
beforeDecompress ( Stream jpeg ) : void

Tunes decompressor

getImageParametersFromDecompressor ( ) : LoadedImageAttributes

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

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

Compresses any image described as ICompressSource to JPEG
public Compress ( IRawImage source, Stream output ) : void
source IRawImage Contains description of input image
output Stream Stream for output of compressed JPEG
Результат void

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

Decompresses JPEG image to any image described as ICompressDestination
public Decompress ( Stream jpeg, IDecompressDestination destination ) : void
jpeg Stream Stream with JPEG data
destination IDecompressDestination Stream for output of compressed JPEG
Результат void

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

public SetMarkerProcessor ( int markerCode, MarkerParser routine ) : void
markerCode int
routine MarkerParser
Результат void