C# Class BitMiracle.LibJpeg.Jpeg

Internal wrapper for classic jpeg compressor and decompressor
显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
applyParameters ( CompressionParameters parameters ) : void
applyParameters ( DecompressionParameters parameters ) : void
beforeDecompress ( Stream jpeg ) : void

Tunes decompressor

getImageParametersFromDecompressor ( ) : LoadedImageAttributes

Method Details

Compress() public method

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
return void

Decompress() public method

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
return void

SetMarkerProcessor() public method

public SetMarkerProcessor ( int markerCode, MarkerParser routine ) : void
markerCode int
routine MarkerParser
return void