EmfSelectPalette

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

public final class EmfSelectPalette extends EmfObjectManipulationRecordType

The EMR_SELECTPALETTE record specifies a logical palette for the playback device context.

Constructors

ConstructorDescription
EmfSelectPalette(EmfRecord source)Initializes a new instance of the EmfSelectPalette class.

Methods

MethodDescription
getIhPal()Gets or sets a 32-bit unsigned integer that specifies either the index of a LogPalette object (section 2.2.17) in the EMF Object Table or the value DEFAULT_PALETTE, which is the index of a stock object palette from the StockObject enumeration (section 2.1.31).
setIhPal(int value)Gets or sets a 32-bit unsigned integer that specifies either the index of a LogPalette object (section 2.2.17) in the EMF Object Table or the value DEFAULT_PALETTE, which is the index of a stock object palette from the StockObject enumeration (section 2.1.31).

EmfSelectPalette(EmfRecord source)

public EmfSelectPalette(EmfRecord source)

Initializes a new instance of the EmfSelectPalette class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

getIhPal()

public int getIhPal()

Gets or sets a 32-bit unsigned integer that specifies either the index of a LogPalette object (section 2.2.17) in the EMF Object Table or the value DEFAULT_PALETTE, which is the index of a stock object palette from the StockObject enumeration (section 2.1.31).

This value MUST NOT be zero or the index of any other stock object.

Returns: int

setIhPal(int value)

public void setIhPal(int value)

Gets or sets a 32-bit unsigned integer that specifies either the index of a LogPalette object (section 2.2.17) in the EMF Object Table or the value DEFAULT_PALETTE, which is the index of a stock object palette from the StockObject enumeration (section 2.1.31).

This value MUST NOT be zero or the index of any other stock object.

Parameters:

ParameterTypeDescription
valueint