WmfEscapeEnhancedMetafile

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.wmf.objects.WmfObject, com.aspose.imaging.fileformats.wmf.objects.escaperecords.WmfEscapeRecordBase

public class WmfEscapeEnhancedMetafile extends WmfEscapeRecordBase

The Escape Enhanced Meta file record.

Constructors

ConstructorDescription
WmfEscapeEnhancedMetafile()

Methods

MethodDescription
getCommentIdentifier()Gets or sets the comment identifier.
setCommentIdentifier(int value)Gets or sets the comment identifier.
getCommentType()Gets or sets the type of the comment.
setCommentType(int value)Gets or sets the type of the comment.
getVersion()Gets or sets the version.
setVersion(int value)Gets or sets the version.
getChecksum()Gets or sets the checksum.
setChecksum(int value)Gets or sets the checksum.
getFlags()Gets or sets the flags.
setFlags(int value)Gets or sets the flags.
getCommentRecordCount()Gets or sets the comment record count.
setCommentRecordCount(int value)Gets or sets the comment record count.
getCurrentRecordSize()Gets or sets the size of the current record.
setCurrentRecordSize(int value)Gets or sets the size of the current record.
getRemainingBytes()Gets or sets the remaining bytes.
setRemainingBytes(int value)Gets or sets the remaining bytes.
getEnhancedMetafileDataSize()Gets or sets the size of the enhanced metafile data.
setEnhancedMetafileDataSize(int value)Gets or sets the size of the enhanced metafile data.
getEnhancedMetafileData()Gets or sets the enhanced metafile data.
setEnhancedMetafileData(byte[] value)Gets or sets the enhanced metafile data.

WmfEscapeEnhancedMetafile()

public WmfEscapeEnhancedMetafile()

getCommentIdentifier()

public int getCommentIdentifier()

Gets or sets the comment identifier.

Value: A 32-bit unsigned integer that defines this record as a WMF Comment record. This value MUST be 0x43464D57.

Returns: int

setCommentIdentifier(int value)

public void setCommentIdentifier(int value)

Gets or sets the comment identifier.

Value: A 32-bit unsigned integer that defines this record as a WMF Comment record. This value MUST be 0x43464D57.

Parameters:

ParameterTypeDescription
valueint

getCommentType()

public int getCommentType()

Gets or sets the type of the comment.

Value: A 32-bit unsigned integer that identifies the type of comment in this record. This value MUST be 0x00000001.

Returns: int

setCommentType(int value)

public void setCommentType(int value)

Gets or sets the type of the comment.

Value: A 32-bit unsigned integer that identifies the type of comment in this record. This value MUST be 0x00000001.

Parameters:

ParameterTypeDescription
valueint

getVersion()

public int getVersion()

Gets or sets the version.

Value: A 32-bit unsigned integer that specifies EMF metafile interoperability. This SHOULD be 0x00010000

Returns: int

setVersion(int value)

public void setVersion(int value)

Gets or sets the version.

Value: A 32-bit unsigned integer that specifies EMF metafile interoperability. This SHOULD be 0x00010000

Parameters:

ParameterTypeDescription
valueint

getChecksum()

public int getChecksum()

Gets or sets the checksum.

Value: A 16-bit unsigned integer used to validate the correctness of the embedded EMF stream. This value MUST be the one’s-complement of the result of applying an XOR operation to all WORDs in the EMF stream.

Returns: int

setChecksum(int value)

public void setChecksum(int value)

Gets or sets the checksum.

Value: A 16-bit unsigned integer used to validate the correctness of the embedded EMF stream. This value MUST be the one’s-complement of the result of applying an XOR operation to all WORDs in the EMF stream.

Parameters:

ParameterTypeDescription
valueint

getFlags()

public int getFlags()

Gets or sets the flags.

Value: This 32-bit unsigned integer is unused and MUST be set to zero.

Returns: int

setFlags(int value)

public void setFlags(int value)

Gets or sets the flags.

Value: This 32-bit unsigned integer is unused and MUST be set to zero.

Parameters:

ParameterTypeDescription
valueint

getCommentRecordCount()

public int getCommentRecordCount()

Gets or sets the comment record count.

Value: A 32-bit unsigned integer that specifies the total number of consecutive META_ESCAPE_ENHANCED_METAFILE records that contain the embedded EMF metafile.

Returns: int

setCommentRecordCount(int value)

public void setCommentRecordCount(int value)

Gets or sets the comment record count.

Value: A 32-bit unsigned integer that specifies the total number of consecutive META_ESCAPE_ENHANCED_METAFILE records that contain the embedded EMF metafile.

Parameters:

ParameterTypeDescription
valueint

getCurrentRecordSize()

public int getCurrentRecordSize()

Gets or sets the size of the current record.

Value: A 32-bit unsigned integer that specifies the size, in bytes, of the EnhancedMetafileData field. This value MUST be less than or equal to 8,192.

Returns: int

setCurrentRecordSize(int value)

public void setCurrentRecordSize(int value)

Gets or sets the size of the current record.

Value: A 32-bit unsigned integer that specifies the size, in bytes, of the EnhancedMetafileData field. This value MUST be less than or equal to 8,192.

Parameters:

ParameterTypeDescription
valueint

getRemainingBytes()

public int getRemainingBytes()

Gets or sets the remaining bytes.

Value: A 32-bit unsigned integer that specifies the number of bytes in the EMF stream that remain to be processed after this record. Those additional EMF bytes MUST follow in the EnhancedMetafileData fields of subsequent META_ESCAPE_ENHANDED_METAFILE escape records.

Returns: int

setRemainingBytes(int value)

public void setRemainingBytes(int value)

Gets or sets the remaining bytes.

Value: A 32-bit unsigned integer that specifies the number of bytes in the EMF stream that remain to be processed after this record. Those additional EMF bytes MUST follow in the EnhancedMetafileData fields of subsequent META_ESCAPE_ENHANDED_METAFILE escape records.

Parameters:

ParameterTypeDescription
valueint

getEnhancedMetafileDataSize()

public int getEnhancedMetafileDataSize()

Gets or sets the size of the enhanced metafile data.

Value: A 32-bit unsigned integer that specifies the total size of the EMF stream embedded in this sequence of META_ESCAPE_ENHANCED_METAFILE records.

Returns: int

setEnhancedMetafileDataSize(int value)

public void setEnhancedMetafileDataSize(int value)

Gets or sets the size of the enhanced metafile data.

Value: A 32-bit unsigned integer that specifies the total size of the EMF stream embedded in this sequence of META_ESCAPE_ENHANCED_METAFILE records.

Parameters:

ParameterTypeDescription
valueint

getEnhancedMetafileData()

public byte[] getEnhancedMetafileData()

Gets or sets the enhanced metafile data.

Value: A segment of an EMF file. The bytes in consecutive META_ESCAPE_ENHANCED_METAFILE records MUST be concatenated to represent the entire embedded EMF file.

Returns: byte[]

setEnhancedMetafileData(byte[] value)

public void setEnhancedMetafileData(byte[] value)

Gets or sets the enhanced metafile data.

Value: A segment of an EMF file. The bytes in consecutive META_ESCAPE_ENHANCED_METAFILE records MUST be concatenated to represent the entire embedded EMF file.

Parameters:

ParameterTypeDescription
valuebyte[]