C# Class FluxJpeg.Core.Encoder.JpegEncoder

显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Encode ( ) : void
JpegEncoder ( DecodedJpeg decodedJpeg, int quality, Stream outStream ) : System

Encodes a JPEG, preserving the colorspace and metadata of the input JPEG.

JpegEncoder ( Image image, int quality, Stream outStream ) : System

Private Methods

Method Description
CompressTo ( Stream outStream ) : void
WriteArray ( byte data ) : void
WriteHeaders ( ) : void
WriteMarker ( byte data ) : void

Method Details

Encode() public method

public Encode ( ) : void
return void

JpegEncoder() public method

Encodes a JPEG, preserving the colorspace and metadata of the input JPEG.
public JpegEncoder ( DecodedJpeg decodedJpeg, int quality, Stream outStream ) : System
decodedJpeg FluxJpeg.Core.DecodedJpeg Decoded Jpeg to start with.
quality int Quality of the image from 0 to 100. (Compression from max to min.)
outStream Stream Stream where the result will be placed.
return System

JpegEncoder() public method

public JpegEncoder ( Image image, int quality, Stream outStream ) : System
image Image
quality int
outStream Stream
return System