Version

JPEGCompressor Class

Represents an implementation of a JPEG compressor.
Syntax
'Declaration
 
Public Class JPEGCompressor 
   Inherits ImageCompressor
public class JPEGCompressor : ImageCompressor 
Remarks

JPEG is a lossy compression algorithm whose quality settings are measured on a scale of 0-100.

Note: Since this compression algorithm is inherently lossy, it is possible that the transparency mechanism within this assembly, such as through Image.Image Constructor(Image,Color), will seem to partially function. This is because not all of the colors will necessarily be exactly what they were originally (i.e. White (255, 255, 255) may be (253, 255, 255)), so when checking the pixel to see if it is the transparent color specified, it will not be considered a match. In this scenario, it is recommended to use FlateCompressor.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also