Packages

 

com.aspose.imaging.fileformats.emf.emf.objects

Class EmfHeaderObject

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    EmfHeaderExtension1, EmfHeaderExtension2


    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 Summary

      Constructors 
      Constructor and Description
      EmfHeaderObject()
      Initializes a new instance of the EmfHeaderObject class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
    • Constructor Detail

      • EmfHeaderObject

        public EmfHeaderObject()

        Initializes a new instance of the EmfHeaderObject class.

    • Method Detail

      • 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

      • setBounds

        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

      • 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

      • setFrame

        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

      • 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).

      • setRecordSignature

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

      • getVersion

        public int getVersion()

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

      • setVersion

        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

      • getBytes

        public int getBytes()

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

      • setBytes

        public void setBytes(int value)

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

      • getRecords

        public int getRecords()

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

      • setRecords

        public void setRecords(int value)

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

      • 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

      • setHandles

        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

      • getReserved

        public short getReserved()

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

      • setReserved

        public void setReserved(short value)

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

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

      • setNDesription

        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.

      • 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

      • setOffDescription

        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

      • 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

      • setNPalEntries

        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

      • 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

      • setDevice

        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

      • getMillimeters

        public Size getMillimeters()

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

      • setMillimeters

        public void setMillimeters(Size value)

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

      • getValid

        public boolean getValid()

        Gets a value indicating whether this EmfHeaderObject is valid.

        Value: true if valid; otherwise, false.