Class BitmapToJpegConverter
- Namespace
- SoftZenPdf.Optimizer
- Assembly
- SoftZenPdf.Optimizer.dll
Converts photographic bitmap images to JPEG. Only 8-bit greyscale, RGB and CMYK images with more than 256 colours are converted; soft masks, palette images, images with colour-key masks and images with few colours (logos, diagrams, screenshots, which JPEG would blur) are handed to OtherImages instead. A photograph is also kept lossless when that is smaller than the JPEG.
public sealed class BitmapToJpegConverter : ImageProcessor
- Inheritance
-
BitmapToJpegConverter
- Inherited Members
Constructors
- BitmapToJpegConverter(float)
Creates a converter.
Properties
- OtherImages
What to do with images that are not converted, and the lossless alternative a photograph is compared with. Defaults to a BitmapCompressor; null leaves those images alone.
- Quality
The JPEG quality, greater than 0 and at most 1.
- SubsampleChroma
Store the colour detail of RGB images at half resolution (4:2:0). Defaults to true.