EmfNamedEscape

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

public final class EmfNamedEscape extends EmfEscapeRecordType

The MR_NAMEDESCAPE record passes arbitrary information to a specified printer driver.

Constructors

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

Methods

MethodDescription
getCjDriver()Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field.
setCjDriver(int value)Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field.
getCjIn()Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
setCjIn(int value)Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.
getDriverName()Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data.
setDriverName(String value)Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data.
getData()Gets or sets The data to pass to the printer driver.
setData(byte[] value)Gets or sets The data to pass to the printer driver.

EmfNamedEscape(EmfRecord source)

public EmfNamedEscape(EmfRecord source)

Initializes a new instance of the EmfNamedEscape class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

getCjDriver()

public int getCjDriver()

Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field. This value MUST be an even number.

Returns: int

setCjDriver(int value)

public void setCjDriver(int value)

Gets or sets A 32-bit unsigned integer that specifies the number of bytes in the DriverName field. This value MUST be an even number.

Parameters:

ParameterTypeDescription
valueint

getCjIn()

public int getCjIn()

Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.

Returns: int

setCjIn(int value)

public void setCjIn(int value)

Gets or sets A 32-bit unsigned integer specifying the number of bytes to pass to the printer driver.

Parameters:

ParameterTypeDescription
valueint

getDriverName()

public String getDriverName()

Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data. This value MUST be cjDriver bytes long, and it MUST be terminated with a null character.

Returns: java.lang.String

setDriverName(String value)

public void setDriverName(String value)

Gets or sets A string of 16-bit Unicode characters that specifies the name of the printer driver that will receive data. This value MUST be cjDriver bytes long, and it MUST be terminated with a null character.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getData()

public byte[] getData()

Gets or sets The data to pass to the printer driver. There MUST be cjIn bytes available.

Returns: byte[]

setData(byte[] value)

public void setData(byte[] value)

Gets or sets The data to pass to the printer driver. There MUST be cjIn bytes available.

Parameters:

ParameterTypeDescription
valuebyte[]