Packages

 

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

Classes

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

Class EmfColorMatchToTargetW

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


    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 Summary

      Constructors 
      Constructor and Description
      EmfColorMatchToTargetW(EmfRecord source)
      Initializes a new instance of the EmfColorMatchToTargetW class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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).
    • Constructor Detail

      • EmfColorMatchToTargetW

        public EmfColorMatchToTargetW(EmfRecord source)

        Initializes a new instance of the EmfColorMatchToTargetW class.

        Parameters:
        source - The source.
    • Method Detail

      • getDwAction

        public int getDwAction()

        Gets or sets a 32-bit unsigned integer that specifies a value from the ColorSpace enumeration (section 2.1.7).

      • setDwAction

        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).

      • getDwFlags

        public int getDwFlags()

        Gets or sets a 32-bit unsigned integer that specifies a value from the ColorMatchToTarget enumeration (section 2.1.6).

      • setDwFlags

        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).

      • 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.

      • setCbName

        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.

      • 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.

      • setCbData

        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.

      • 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.

      • setData

        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.

      • getName

        public String getName()

        Gets the name

      • getRawData

        public byte[] getRawData()

        Gets the raw data