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

Namespace: Aspose.Imaging.FileFormats.Jpeg
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public enum SampleRoundingMode
Members
  Member nameValueDescription
Extrapolate0 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).
Truncate1 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).
See Also