Packages

 

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

Classes

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

Class EmfCreatePalette

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


    public final class EmfCreatePalette
    extends EmfObjectCreationRecordType

    The EMR_CREATEPALETTE record defines a logical palette for graphics operations.

    • Constructor Detail

      • EmfCreatePalette

        public EmfCreatePalette(EmfRecord source)

        Initializes a new instance of the EmfCreatePalette class.

        Parameters:
        source - The source.
    • Method Detail

      • getIhPal

        public int getIhPal()

        Gets or sets a 32-bit unsigned integer that specifies the index of the logical palette object in the EMF Object Table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.

      • setIhPal

        public void setIhPal(int value)

        Gets or sets a 32-bit unsigned integer that specifies the index of the logical palette object in the EMF Object Table (section 3.1.1.1). This index MUST be saved so that this object can be reused or modified.

      • getLogPalette

        public EmfLogPalette getLogPalette()

        Gets or sets a LogPalette object (section 2.2.17). The Version field of this object MUST be set to 0x0300. If the NumberOfEntries value in this object is zero, processing of this record MUST fail.

      • setLogPalette

        public void setLogPalette(EmfLogPalette value)

        Gets or sets a LogPalette object (section 2.2.17). The Version field of this object MUST be set to 0x0300. If the NumberOfEntries value in this object is zero, processing of this record MUST fail.