Packages

 

com.aspose.imaging.fileformats.emf.emfplus.records

Class EmfPlusSetTextContrast

  • All Implemented Interfaces:
    com.aspose.imaging_internal.fileformats.emf.IRecord, Cloneable


    public final class EmfPlusSetTextContrast
    extends EmfPlusPropertyRecordType

    The EmfPlusSetTextContrast record specifies text contrast according to the gamma correction value.

    • Constructor Detail

      • EmfPlusSetTextContrast

        public EmfPlusSetTextContrast(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusSetTextContrast class.

        Parameters:
        source - The source.
    • Method Detail

      • getTextContrast

        public short getTextContrast()

        Gets or sets the gamma correction value X 1000, which will be applied to subsequent text rendering operations. The allowable range is 1000 to 2200, representing text gamma values of 1.0 to 2.2.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value Value: The text contrast value.
      • setTextContrast

        public void setTextContrast(short value)

        Gets or sets the gamma correction value X 1000, which will be applied to subsequent text rendering operations. The allowable range is 1000 to 2200, representing text gamma values of 1.0 to 2.2.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - value Value: The text contrast value.