EmfPlusMetafile

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusStructureObjectType, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusBaseImageData

public final class EmfPlusMetafile extends EmfPlusBaseImageData

The EmfPlusMetafileData object specifies a metafile that contains a graphics image

Constructors

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

Methods

MethodDescription
getType()Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field.
setType(int value)Gets or sets 32-bit unsigned integer that specifies the type of metafile that is embedded in the MetafileData field.
getMetafileDataSize()Gets or sets 32-bit unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field
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()Gets or sets variable-length data that specifies the embedded metafile.
setMetafileData(byte[] value)Gets or sets variable-length data that specifies the embedded metafile.

EmfPlusMetafile()

public EmfPlusMetafile()

Initializes a new instance of the EmfPlusMetafile class.

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

Returns: int

setType(int value)

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

Parameters:

ParameterTypeDescription
valueint

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

Returns: int

setMetafileDataSize(int value)

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

Parameters:

ParameterTypeDescription
valueint

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.

Returns: byte[]

setMetafileData(byte[] value)

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.

Parameters:

ParameterTypeDescription
valuebyte[]