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.
Constructor and Description |
---|
EmfHeaderObject()
Initializes a new instance of the
EmfHeaderObject class. |
Modifier and Type | Method and Description |
---|---|
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
|
int |
getBytes()
Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
|
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
|
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
|
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
|
Size |
getMillimeters()
Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
|
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.
|
int |
getNPalEntries()
Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile
palette.
|
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
|
int |
getRecords()
Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
|
int |
getRecordSignature()
Gets or sets a 32-bit unsigned integer that specifies the record signature.
|
short |
getReserved()
Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
|
boolean |
getValid()
Gets a value indicating whether this
EmfHeaderObject is valid. |
int |
getVersion()
Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability.
|
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
|
void |
setBytes(int value)
Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
|
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
|
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
|
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
|
void |
setMillimeters(Size value)
Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
|
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.
|
void |
setNPalEntries(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of entries in the metafile
palette.
|
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
|
void |
setRecords(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
|
void |
setRecordSignature(int value)
Gets or sets a 32-bit unsigned integer that specifies the record signature.
|
void |
setReserved(short value)
Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
|
void |
setVersion(int value)
Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability.
|
public EmfHeaderObject()
Initializes a new instance of the EmfHeaderObject
class.
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
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
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
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
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).
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).
public int getVersion()
Gets or sets Version (4 bytes): A 32-bit unsigned integer that specifies EMF metafile interoperability. This SHOULD be 0x00010000
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
public int getBytes()
Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
public void setBytes(int value)
Gets or sets 32-bit unsigned integer that specifies the size of the metafile, in bytes.
public int getRecords()
Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
public void setRecords(int value)
Gets or sets a 32-bit unsigned integer that specifies the number of records in the metafile
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
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
public short getReserved()
Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
public void setReserved(short value)
Gets or sets a 16-bit unsigned integer that MUST be 0x0000 and MUST be ignored
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.
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.
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
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
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
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
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
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
public Size getMillimeters()
Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
public void setMillimeters(Size value)
Gets or sets a WMF SizeL object that specifies the size of the reference device, in millimeters
public boolean getValid()
Gets a value indicating whether this EmfHeaderObject
is valid.
true
if valid; otherwise, false
.