ImageTransfer

The class <code>ImageTransfer</code> provides a platform specific mechanism for converting an Image represented as a java <code>ImageData</code> to a platform specific representation of the data and vice versa.

<p>An example of a java <code>ImageData</code> is shown below:</p>

<code><pre> Image image = new Image(display, "C:\temp\img1.gif"); ImageData imgData = image.getImageData(); </code></pre>

@see Transfer

@since 3.4

Members

Functions

javaToNative
void javaToNative(Object object, TransferData transferData)

This implementation of <code>javaToNative</code> converts an ImageData object represented by java <code>ImageData</code> to a platform specific representation.

nativeToJava
Object nativeToJava(TransferData transferData)

This implementation of <code>nativeToJava</code> converts a platform specific representation of an image to java <code>ImageData</code>.

Static functions

getInstance
ImageTransfer getInstance()

Returns the singleton instance of the ImageTransfer class.

Inherited Members

From ByteArrayTransfer

javaToNative
void javaToNative(Object object, TransferData transferData)

This implementation of <code>javaToNative</code> converts a java <code>byte[]</code> to a platform specific representation.

nativeToJava
Object nativeToJava(TransferData transferData)

This implementation of <code>nativeToJava</code> converts a platform specific representation of a byte array to a java <code>byte[]</code>.

Meta