EmfHeaderObject

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.objects.EmfObject

public class EmfHeaderObject extends EmfObject

The Header object defines the EMF metafile header. It specifies properties of the device on which the image in the metafile was created.

Constructors

ConstructorDescription
EmfHeaderObject()Initializes a new instance of the EmfHeaderObject class.

Methods

MethodDescription
getBounds()Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the rectangular inclusive-inclusive bounds in device units of the smallest rectangle that can be drawn around the image stored in the metafile
setBounds(Rectangle value)Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the rectangular inclusive-inclusive bounds in device units of the smallest rectangle that can be drawn around the image stored in the metafile
getFrame()Gets or sets a WMF RectL object that specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile
setFrame(Rectangle value)Gets or sets a WMF RectL object that specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile
getRecordSignature()Gets or sets a 32-bit unsigned integer that specifies the record signature.
setRecordSignature(int value)Gets or sets a 32-bit unsigned integer that specifies the record signature.
getVersion()Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability.
setVersion(int value)Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability.
getBytes()Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
setBytes(int value)Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
getRecords()Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
setRecords(int value)Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
getHandles()Gets or sets a 16-bit unsigned integer that specifies the number of graphics objects that will be used during the processing of the metafile
setHandles(short value)Gets or sets a 16-bit unsigned integer that specifies the number of graphics objects that will be used during the processing of the metafile
getReserved()Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
setReserved(short value)Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
getNDesription()Gets or sets a 32-bit unsigned integer that specifies the number of characters in the array that contains the description of the metafile’s contents.
setNDesription(int value)Gets or sets a 32-bit unsigned integer that specifies the number of characters in the array that contains the description of the metafile’s contents.
getOffDescription()Gets or sets a 32-bit unsigned integer that specifies the offset from the beginning of this record to the array that contains the description of the metafile’s contents
setOffDescription(int value)Gets or sets a 32-bit unsigned integer that specifies the offset from the beginning of this record to the array that contains the description of the metafile’s contents
getNPalEntries()Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile palette.
setNPalEntries(int value)Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile palette.
getDevice()Gets or sets a WMF SizeL object ([MS-WMF] section 2.2.2.22) that specifies the size of the reference device, in pixels
setDevice(Size value)Gets or sets a WMF SizeL object ([MS-WMF] section 2.2.2.22) that specifies the size of the reference device, in pixels
getMillimeters()Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
setMillimeters(Size value)Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
getValid()Gets a value indicating whether this EmfHeaderObject is valid.

EmfHeaderObject()

public EmfHeaderObject()

Initializes a new instance of the EmfHeaderObject class.

getBounds()

public Rectangle getBounds()

Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the rectangular inclusive-inclusive bounds in device units of the smallest rectangle that can be drawn around the image stored in the metafile

Returns: Rectangle

setBounds(Rectangle value)

public void setBounds(Rectangle value)

Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that specifies the rectangular inclusive-inclusive bounds in device units of the smallest rectangle that can be drawn around the image stored in the metafile

Parameters:

ParameterTypeDescription
valueRectangle

getFrame()

public Rectangle getFrame()

Gets or sets a WMF RectL object that specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile

Returns: Rectangle

setFrame(Rectangle value)

public void setFrame(Rectangle value)

Gets or sets a WMF RectL object that specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile

Parameters:

ParameterTypeDescription
valueRectangle

getRecordSignature()

public int getRecordSignature()

Gets or sets a 32-bit unsigned integer that specifies the record signature. This MUST be ENHMETA_SIGNATURE, from the FormatSignature enumeration (section 2.1.14).

Returns: int

setRecordSignature(int value)

public void setRecordSignature(int value)

Gets or sets a 32-bit unsigned integer that specifies the record signature. This MUST be ENHMETA_SIGNATURE, from the FormatSignature enumeration (section 2.1.14).

Parameters:

ParameterTypeDescription
valueint

getVersion()

public int getVersion()

Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability. This SHOULD be 0x00010000

Returns: int

setVersion(int value)

public void setVersion(int value)

Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability. This SHOULD be 0x00010000

Parameters:

ParameterTypeDescription
valueint

getBytes()

public int getBytes()

Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.

Returns: int

setBytes(int value)

public void setBytes(int value)

Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.

Parameters:

ParameterTypeDescription
valueint

getRecords()

public int getRecords()

Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile

Returns: int

setRecords(int value)

public void setRecords(int value)

Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile

Parameters:

ParameterTypeDescription
valueint

getHandles()

public short getHandles()

Gets or sets a 16-bit unsigned integer that specifies the number of graphics objects that will be used during the processing of the metafile

Returns: short

setHandles(short value)

public void setHandles(short value)

Gets or sets a 16-bit unsigned integer that specifies the number of graphics objects that will be used during the processing of the metafile

Parameters:

ParameterTypeDescription
valueshort

getReserved()

public short getReserved()

Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored

Returns: short

setReserved(short value)

public void setReserved(short value)

Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored

Parameters:

ParameterTypeDescription
valueshort

getNDesription()

public int getNDesription()

Gets or sets a 32-bit unsigned integer that specifies the number of characters in the array that contains the description of the metafile’s contents. This is zero if there is no description string.

Returns: int

setNDesription(int value)

public void setNDesription(int value)

Gets or sets a 32-bit unsigned integer that specifies the number of characters in the array that contains the description of the metafile’s contents. This is zero if there is no description string.

Parameters:

ParameterTypeDescription
valueint

getOffDescription()

public int getOffDescription()

Gets or sets a 32-bit unsigned integer that specifies the offset from the beginning of this record to the array that contains the description of the metafile’s contents

Returns: int

setOffDescription(int value)

public void setOffDescription(int value)

Gets or sets a 32-bit unsigned integer that specifies the offset from the beginning of this record to the array that contains the description of the metafile’s contents

Parameters:

ParameterTypeDescription
valueint

getNPalEntries()

public int getNPalEntries()

Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile palette. The palette is located in the EMR_EOF record

Returns: int

setNPalEntries(int value)

public void setNPalEntries(int value)

Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile palette. The palette is located in the EMR_EOF record

Parameters:

ParameterTypeDescription
valueint

getDevice()

public Size getDevice()

Gets or sets a WMF SizeL object ([MS-WMF] section 2.2.2.22) that specifies the size of the reference device, in pixels

Returns: Size

setDevice(Size value)

public void setDevice(Size value)

Gets or sets a WMF SizeL object ([MS-WMF] section 2.2.2.22) that specifies the size of the reference device, in pixels

Parameters:

ParameterTypeDescription
valueSize

getMillimeters()

public Size getMillimeters()

Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters

Returns: Size

setMillimeters(Size value)

public void setMillimeters(Size value)

Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters

Parameters:

ParameterTypeDescription
valueSize

getValid()

public boolean getValid()

Gets a value indicating whether this EmfHeaderObject is valid.

Value: true if valid; otherwise, false.

Returns: boolean