Packages

 

com.aspose.imaging.fileformats.jpeg

Class SampleRoundingMode

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.imaging.fileformats.jpeg.SampleRoundingMode


  • public final class SampleRoundingMode
    extends com.aspose.ms.System.Enum

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

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int Extrapolate
      Extrapolate an 8-bit value to fit it into n bits, where 1 < n < 8.
      static int Truncate
      Truncate an 8-bit value to fit it into n bits, where 1 < n < 8.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getName, getNames, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, getValues, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject, toString
    • Field Detail

      • Extrapolate

        public static final int 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).

        See Also:
        Constant Field Values
      • Truncate

        public static final int 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).

        See Also:
        Constant Field Values