Aspose::Pdf::Engine::Presentation::Graphics::FileFormats::Jpeg Namespace Reference

Enumerations

enum  JpegCompressionMode { JpegCompressionMode::Baseline, JpegCompressionMode::Progressive, JpegCompressionMode::Lossless, JpegCompressionMode::JpegLs }
 Compression mode for jpeg images. More...
 
enum  JfifDensityUnits : uint8_t { JfifDensityUnits::NoUnits = 0, JfifDensityUnits::PixelsPerInch = 1, JfifDensityUnits::PixelsPerCm = 2 }
 The jfif density units. More...
 
enum  JpegCompressionColorMode {
  JpegCompressionColorMode::Grayscale, JpegCompressionColorMode::YCbCr, JpegCompressionColorMode::Cmyk, JpegCompressionColorMode::Ycck,
  JpegCompressionColorMode::Rgb
}
 –°olor mode for jpeg images. More...
 
enum  JpegLsInterleaveMode { JpegLsInterleaveMode::None = 0, JpegLsInterleaveMode::Line = 1, JpegLsInterleaveMode::Sample = 2 }
 Defines the interleave mode for multi-component (color) pixel data. More...
 
enum  SampleRoundingMode { SampleRoundingMode::Extrapolate = 0, SampleRoundingMode::Truncate = 1 }
 Defines a way in which an n-bit value is converted to an 8-bit value. More...
 

Enumeration Type Documentation

◆ JfifDensityUnits

The jfif density units.

Enumerator
NoUnits 

The no units.

PixelsPerInch 

The pixels per inch.

PixelsPerCm 

The pixels per cm.

◆ JpegCompressionColorMode

–°olor mode for jpeg images.

Enumerator
Grayscale 

The Grayscale image.

YCbCr 

YCbCr image, standard option for jpeg images.

Cmyk 

4-component CMYK image.

Ycck 

The ycck color jpeg image. Needs icc profile for saving.

Rgb 

The RGB Color mode.

◆ JpegCompressionMode

Compression mode for jpeg images.

Enumerator
Baseline 

The baseline compression.

Progressive 

The progressive compression.

Lossless 

The lossless compression.

JpegLs 

The JPEG-LS compression.

◆ JpegLsInterleaveMode

Defines the interleave mode for multi-component (color) pixel data.

Enumerator
None 

The data is encoded and stored as component for component: RRRGGGBBB.

Line 

The interleave mode is by line. A full line of each component is encoded before moving to the next line.

Sample 

The data is encoded and stored by sample. For color images this is the format like RGBRGBRGB.

◆ SampleRoundingMode

Defines a way in which an n-bit value is converted to an 8-bit value.

Enumerator
Extrapolate 

Extrapolate an 8-bit value to fit it into n bits, where 1 < n < 8. The number of all possible 8-bit values is 1 << 8 = 256, from 0 to 255. The number of all possible n-bit values is 1 << n, from 0 to (1 << n) - 1. The most reasonable n-bit value Vn corresponding to some 8-bit value V8 is equal to Vn = V8 >> (8 - n).

Truncate 

Truncate an 8-bit value to fit it into n bits, where 1 < n < 8. The number of all possible n-bit values is 1 << n, from 0 to (1 << n) - 1. The most reasonable n-bit value Vn corresponding to some 8-bit value V8 is equal to Vn = V8 & ((1 << n) - 1).