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