EmfColorMatchToTargetW
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.records.EmfRecord, com.aspose.imaging.fileformats.emf.emf.records.EmfStateRecordType
public final class EmfColorMatchToTargetW extends EmfStateRecordType
The EMR_COLORMATCHTOTargetW record specifies whether to perform color matching with a color profile that is specified in a file with a name consisting of Unicode characters.
An EMR_COLORMATCHTOTargetW record can be used to control whether to apply the current color transform in the playback device context. If the dwAction value is CS_ENABLE, color mapping is enabled, and the current color transform SHOULD be applied to subsequent graphics operations. If dwAction is set to CS_DISABLE, the color transform SHOULD NOT be applied. While color mapping to the target is enabled by a dwAction value of CS_ENABLE, changes to the color space or color gamut mapping are not applied. However, those changes MUST take effect when color mapping to the target is disabled. The dwAction field SHOULD NOT be set to CS_DELETE_TRANSFORM unless color management has already been enabled with an EMR_SETICMMODE record (section 2.3.11.14).
Constructors
Constructor | Description |
---|---|
EmfColorMatchToTargetW(EmfRecord source) | Initializes a new instance of the EmfColorMatchToTargetW class. |
Methods
Method | Description |
---|---|
getDwAction() | Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7). |
setDwAction(int value) | Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7). |
getDwFlags() | Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6). |
setDwFlags(int value) | Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6). |
getCbName() | Gets or sets a 32-bit unsigned integer that specifies the number of bytes in the Unicode UTF16-LE name of the desired color profile. |
setCbName(int value) | Gets or sets a 32-bit unsigned integer that specifies the number of bytes in the Unicode UTF16-LE name of the desired color profile. |
getCbData() | Gets or sets a 32-bit unsigned integer that specifies the size of the raw data of the target color profile, if it is contained in the Data field. |
setCbData(int value) | Gets or sets a 32-bit unsigned integer that specifies the size of the raw data of the target color profile, if it is contained in the Data field. |
getData() | Gets or sets an array of size (cbName + cbData) in bytes, which specifies the UTF16-LE name and raw data of the desired color profile. |
setData(byte[] value) | Gets or sets an array of size (cbName + cbData) in bytes, which specifies the UTF16-LE name and raw data of the desired color profile. |
getName() | Gets the name |
getRawData() | Gets the raw data |
EmfColorMatchToTargetW(EmfRecord source)
public EmfColorMatchToTargetW(EmfRecord source)
Initializes a new instance of the EmfColorMatchToTargetW
class.
Parameters:
Parameter | Type | Description |
---|---|---|
source | EmfRecord | The source. |
getDwAction()
public int getDwAction()
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).
Returns: int
setDwAction(int value)
public void setDwAction(int value)
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getDwFlags()
public int getDwFlags()
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).
Returns: int
setDwFlags(int value)
public void setDwFlags(int value)
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getCbName()
public int getCbName()
Gets or sets a 32-bit unsigned integer that specifies the number of bytes in the Unicode UTF16-LE name of the desired color profile.
Returns: int
setCbName(int value)
public void setCbName(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of bytes in the Unicode UTF16-LE name of the desired color profile.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getCbData()
public int getCbData()
Gets or sets a 32-bit unsigned integer that specifies the size of the raw data of the target color profile, if it is contained in the Data field.
Returns: int
setCbData(int value)
public void setCbData(int value)
Gets or sets a 32-bit unsigned integer that specifies the size of the raw data of the target color profile, if it is contained in the Data field.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getData()
public byte[] getData()
Gets or sets an array of size (cbName + cbData) in bytes, which specifies the UTF16-LE name and raw data of the desired color profile.
Returns: byte[]
setData(byte[] value)
public void setData(byte[] value)
Gets or sets an array of size (cbName + cbData) in bytes, which specifies the UTF16-LE name and raw data of the desired color profile.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte[] |
getName()
public String getName()
Gets the name
Returns: java.lang.String
getRawData()
public byte[] getRawData()
Gets the raw data
Returns: byte[]