EmfPlusSetTextContrast

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusRecord, com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusPropertyRecordType

public final class EmfPlusSetTextContrast extends EmfPlusPropertyRecordType

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

Constructors

ConstructorDescription
EmfPlusSetTextContrast(EmfPlusRecord source)Initializes a new instance of the EmfPlusSetTextContrast class.

Methods

MethodDescription
getTextContrast()Gets or sets the gamma correction value X 1000, which will be applied to subsequent text rendering operations.
setTextContrast(short value)Gets or sets the gamma correction value X 1000, which will be applied to subsequent text rendering operations.

EmfPlusSetTextContrast(EmfPlusRecord source)

public EmfPlusSetTextContrast(EmfPlusRecord source)

Initializes a new instance of the EmfPlusSetTextContrast class.

Parameters:

ParameterTypeDescription
sourceEmfPlusRecordThe source.

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.

Returns: short

setTextContrast(short value)

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.

Parameters:

ParameterTypeDescription
valueshort