EmfColorAdjustment

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.objects.EmfObject

public final class EmfColorAdjustment extends EmfObject

The ColorAdjustment object defines values for adjusting the colors in source bitmaps in bit-block transfers.

Constructors

ConstructorDescription
EmfColorAdjustment()

Methods

MethodDescription
getSize()Gets or sets a 16-bit unsigned integer that specifies the size in bytes of this object.
setSize(short value)Gets or sets a 16-bit unsigned integer that specifies the size in bytes of this object.
getValues()Gets or sets a 16-bit unsigned integer that specifies how to prepare the output image.
setValues(int value)Gets or sets a 16-bit unsigned integer that specifies how to prepare the output image.
getIlluminantIndex()Gets or sets a 16-bit unsigned integer that specifies the type of standard light source under which the image is viewed, from the Illuminant enumeration (section 2.1.19).
setIlluminantIndex(int value)Gets or sets a 16-bit unsigned integer that specifies the type of standard light source under which the image is viewed, from the Illuminant enumeration (section 2.1.19).
getRedGamma()Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the red primary of the source colors.
setRedGamma(short value)Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the red primary of the source colors.
getGreenGamma()Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the green primary of the source colors.
setGreenGamma(short value)Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the green primary of the source colors.
getBlueGamma()Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the blue primary of the source colors.
setBlueGamma(short value)Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the blue primary of the source colors.
getReferenceBlack()Gets or sets a 16-bit unsigned integer that specifies the black reference for the source colors.
setReferenceBlack(short value)Gets or sets a 16-bit unsigned integer that specifies the black reference for the source colors.
getReferenceWhite()Gets or sets a 16-bit unsigned integer that specifies the white reference for the source colors.
setReferenceWhite(short value)Gets or sets a 16-bit unsigned integer that specifies the white reference for the source colors.
getContrast()Gets or sets a 16-bit signed integer that specifies the amount of contrast to be applied to the source object.
setContrast(short value)Gets or sets a 16-bit signed integer that specifies the amount of contrast to be applied to the source object.
getBrightness()Gets or sets a 16-bit signed integer that specifies the amount of brightness to be applied to the source object.
setBrightness(short value)Gets or sets a 16-bit signed integer that specifies the amount of brightness to be applied to the source object.
getColorfullness()Gets or sets a 16-bit signed integer that specifies the amount of colorfulness to be applied to the source object.
setColorfullness(short value)Gets or sets a 16-bit signed integer that specifies the amount of colorfulness to be applied to the source object.
getRedGreenTint()Gets or sets 16-bit signed integer that specifies the amount of red or green tint adjustment to be applied to the source object.
setRedGreenTint(short value)Gets or sets 16-bit signed integer that specifies the amount of red or green tint adjustment to be applied to the source object.

EmfColorAdjustment()

public EmfColorAdjustment()

getSize()

public short getSize()

Gets or sets a 16-bit unsigned integer that specifies the size in bytes of this object. This MUST be 0x0018.

Returns: short

setSize(short value)

public void setSize(short value)

Gets or sets a 16-bit unsigned integer that specifies the size in bytes of this object. This MUST be 0x0018.

Parameters:

ParameterTypeDescription
valueshort

getValues()

public int getValues()

Gets or sets a 16-bit unsigned integer that specifies how to prepare the output image. This field can be set to NULL or to any combination of values in the ColorAdjustment enumeration (section 2.1.5).

Returns: int

setValues(int value)

public void setValues(int value)

Gets or sets a 16-bit unsigned integer that specifies how to prepare the output image. This field can be set to NULL or to any combination of values in the ColorAdjustment enumeration (section 2.1.5).

Parameters:

ParameterTypeDescription
valueint

getIlluminantIndex()

public int getIlluminantIndex()

Gets or sets a 16-bit unsigned integer that specifies the type of standard light source under which the image is viewed, from the Illuminant enumeration (section 2.1.19).

Returns: int

setIlluminantIndex(int value)

public void setIlluminantIndex(int value)

Gets or sets a 16-bit unsigned integer that specifies the type of standard light source under which the image is viewed, from the Illuminant enumeration (section 2.1.19).

Parameters:

ParameterTypeDescription
valueint

getRedGamma()

public short getRedGamma()

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the red primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Returns: short

setRedGamma(short value)

public void setRedGamma(short value)

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the red primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Parameters:

ParameterTypeDescription
valueshort

getGreenGamma()

public short getGreenGamma()

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the green primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Returns: short

setGreenGamma(short value)

public void setGreenGamma(short value)

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the green primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Parameters:

ParameterTypeDescription
valueshort

getBlueGamma()

public short getBlueGamma()

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the blue primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Returns: short

setBlueGamma(short value)

public void setBlueGamma(short value)

Gets or sets a 16-bit unsigned integer that specifies the nth power gamma correction value for the blue primary of the source colors. This value SHOULD be in the range from 2,500 to 65,000. A value of 10,000 means gamma correction MUST NOT be performed.

Parameters:

ParameterTypeDescription
valueshort

getReferenceBlack()

public short getReferenceBlack()

Gets or sets a 16-bit unsigned integer that specifies the black reference for the source colors. Any colors that are darker than this are treated as black. This value SHOULD be in the range from zero to 4,000

Returns: short

setReferenceBlack(short value)

public void setReferenceBlack(short value)

Gets or sets a 16-bit unsigned integer that specifies the black reference for the source colors. Any colors that are darker than this are treated as black. This value SHOULD be in the range from zero to 4,000

Parameters:

ParameterTypeDescription
valueshort

getReferenceWhite()

public short getReferenceWhite()

Gets or sets a 16-bit unsigned integer that specifies the white reference for the source colors. Any colors that are lighter than this are treated as white. This value SHOULD be in the range from 6,000 to 10,000.

Returns: short

setReferenceWhite(short value)

public void setReferenceWhite(short value)

Gets or sets a 16-bit unsigned integer that specifies the white reference for the source colors. Any colors that are lighter than this are treated as white. This value SHOULD be in the range from 6,000 to 10,000.

Parameters:

ParameterTypeDescription
valueshort

getContrast()

public short getContrast()

Gets or sets a 16-bit signed integer that specifies the amount of contrast to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means contrast adjustment MUST NOT be performed.

Returns: short

setContrast(short value)

public void setContrast(short value)

Gets or sets a 16-bit signed integer that specifies the amount of contrast to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means contrast adjustment MUST NOT be performed.

Parameters:

ParameterTypeDescription
valueshort

getBrightness()

public short getBrightness()

Gets or sets a 16-bit signed integer that specifies the amount of brightness to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means brightness adjustment MUST NOT be performed.

Returns: short

setBrightness(short value)

public void setBrightness(short value)

Gets or sets a 16-bit signed integer that specifies the amount of brightness to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means brightness adjustment MUST NOT be performed.

Parameters:

ParameterTypeDescription
valueshort

getColorfullness()

public short getColorfullness()

Gets or sets a 16-bit signed integer that specifies the amount of colorfulness to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means colorfulness adjustment MUST NOT be performed

Returns: short

setColorfullness(short value)

public void setColorfullness(short value)

Gets or sets a 16-bit signed integer that specifies the amount of colorfulness to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. A value of zero means colorfulness adjustment MUST NOT be performed

Parameters:

ParameterTypeDescription
valueshort

getRedGreenTint()

public short getRedGreenTint()

Gets or sets 16-bit signed integer that specifies the amount of red or green tint adjustment to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. Positive numbers adjust towards red and negative numbers adjust towards green. A value of zero means tint adjustment MUST NOT be performed

Returns: short

setRedGreenTint(short value)

public void setRedGreenTint(short value)

Gets or sets 16-bit signed integer that specifies the amount of red or green tint adjustment to be applied to the source object. This value SHOULD be in the range from \u2013100 to 100. Positive numbers adjust towards red and negative numbers adjust towards green. A value of zero means tint adjustment MUST NOT be performed

Parameters:

ParameterTypeDescription
valueshort