EmfCreatePalette
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.EmfObjectCreationRecordType
public final class EmfCreatePalette extends EmfObjectCreationRecordType
The EMR_CREATEPALETTE record defines a logical palette for graphics operations.
Constructors
Constructor | Description |
---|---|
EmfCreatePalette(EmfRecord source) | Initializes a new instance of the EmfCreatePalette class. |
Methods
Method | Description |
---|---|
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). |
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). |
getLogPalette() | Gets or sets a LogPalette object (section 2.2.17). |
setLogPalette(EmfLogPalette value) | Gets or sets a LogPalette object (section 2.2.17). |
EmfCreatePalette(EmfRecord source)
public EmfCreatePalette(EmfRecord source)
Initializes a new instance of the EmfCreatePalette
class.
Parameters:
Parameter | Type | Description |
---|---|---|
source | EmfRecord | The source. |
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.
Returns: int
setIhPal(int value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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.
Returns: EmfLogPalette
setLogPalette(EmfLogPalette value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | EmfLogPalette |