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).
Constructor and Description |
---|
EmfColorMatchToTargetW(EmfRecord source)
Initializes a new instance of the
EmfColorMatchToTargetW class. |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
int |
getDwAction()
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace
enumeration (section 2.1.7).
|
int |
getDwFlags()
Gets or sets a 32-bit unsigned integer that specifies a value from the
ColorMatchToTarget enumeration (section 2.1.6).
|
String |
getName()
Gets the name
|
byte[] |
getRawData()
Gets the raw data
|
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.
|
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.
|
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.
|
void |
setDwAction(int value)
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace
enumeration (section 2.1.7).
|
void |
setDwFlags(int value)
Gets or sets a 32-bit unsigned integer that specifies a value from the
ColorMatchToTarget enumeration (section 2.1.6).
|
public EmfColorMatchToTargetW(EmfRecord source)
Initializes a new instance of the EmfColorMatchToTargetW
class.
source
- The source.public int getDwAction()
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).
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).
public int getDwFlags()
Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).
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).
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.
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.
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.
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.
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.
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.
public String getName()
Gets the name
public byte[] getRawData()
Gets the raw data