Packages

 

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

Classes

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

Class EmfPlusMetafile

  • All Implemented Interfaces:
    Cloneable


    public final class EmfPlusMetafile
    extends EmfPlusBaseImageData

    The EmfPlusMetafileData object specifies a metafile that contains a graphics image

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] getMetafileData()
      Gets or sets variable-length data that specifies the embedded metafile.
      int getMetafileDataSize()
      Gets or sets 32-bit unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field
      int getType()
      Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field.
      void setMetafileData(byte[] value)
      Gets or sets variable-length data that specifies the embedded metafile.
      void setMetafileDataSize(int value)
      Gets or sets 32-bit unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field
      void setType(int value)
      Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field.
    • Constructor Detail

      • EmfPlusMetafile

        public EmfPlusMetafile()

        Initializes a new instance of the EmfPlusMetafile class.

    • Method Detail

      • getType

        public int getType()

        Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field. This value MUST be defined in the MetafileDataType enumeration (section 2.1.1.21).

      • setType

        public void setType(int value)

        Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field. This value MUST be defined in the MetafileDataType enumeration (section 2.1.1.21).

      • getMetafileDataSize

        public int getMetafileDataSize()

        Gets or sets 32-bit unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field

      • setMetafileDataSize

        public void setMetafileDataSize(int value)

        Gets or sets 32-bit unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field

      • getMetafileData

        public byte[] getMetafileData()

        Gets or sets variable-length data that specifies the embedded metafile. The content and format of the data can be different for each metafile type.

        Graphics images are specified by EmfPlusImage objects (section 2.2.1.4). An EmfPlusMetafile object MUST be present in the ImageData field of an EmfPlusImage object if ImageTypeMetafile is specified in its Type field. This object is generic and is used for different types of data, including: A WMF metafile [MS-WMF]; WMF metafile which can be placed; An EMF metafile [MS-EMF]; An EMF+ metafile that specifies graphics operations with EMF+ records only; and An EMF+ metafile that specifies graphics operations with both EMF+ and EMF records. See section 2.2.2 for the specification of additional structure objects.

      • setMetafileData

        public void setMetafileData(byte[] value)

        Gets or sets variable-length data that specifies the embedded metafile. The content and format of the data can be different for each metafile type.

        Graphics images are specified by EmfPlusImage objects (section 2.2.1.4). An EmfPlusMetafile object MUST be present in the ImageData field of an EmfPlusImage object if ImageTypeMetafile is specified in its Type field. This object is generic and is used for different types of data, including: A WMF metafile [MS-WMF]; WMF metafile which can be placed; An EMF metafile [MS-EMF]; An EMF+ metafile that specifies graphics operations with EMF+ records only; and An EMF+ metafile that specifies graphics operations with both EMF+ and EMF records. See section 2.2.2 for the specification of additional structure objects.