EmfRecord

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

All Implemented Interfaces: com.aspose.internal.fileformats.emf.IRecord

public class EmfRecord extends MetaObject implements IRecord

Base class for EMF records All EMF records MUST have a length that is a multiple of 4 bytes. This is depicted in the generic structures of the preceding EMF record types by including AlignmentPadding fields where appropriate at the ends of these structures. The contents of AlignmentPadding fields MUST always be ignored. For brevity, these fields are not shown in every individual EMF record definition.

Constructors

ConstructorDescription
EmfRecord()Initializes a new instance of the EmfRecord class.
EmfRecord(EmfRecord source)Initializes a new instance of the EmfRecord class.
EmfRecord(int type)Initializes a new instance of the EmfRecord class.

Methods

MethodDescription
getType()Gets the type.
setType(int value)Sets the type.
getSize()Gets the size of the record
setSize(int value)Sets the size of the record

EmfRecord()

public EmfRecord()

Initializes a new instance of the EmfRecord class.

EmfRecord(EmfRecord source)

public EmfRecord(EmfRecord source)

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

EmfRecord(int type)

public EmfRecord(int type)

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
typeintThe record type.

getType()

public int getType()

Gets the type.

Returns: int - The type.

setType(int value)

public void setType(int value)

Sets the type.

Parameters:

ParameterTypeDescription
valueintThe type.

getSize()

public int getSize()

Gets the size of the record

Returns: int

setSize(int value)

public void setSize(int value)

Sets the size of the record

Parameters:

ParameterTypeDescription
valueint