Package de.intarsys.cwt.hybrid.image
Class CwtHybridImage
java.lang.Object
de.intarsys.cwt.hybrid.image.CwtHybridImage
-
Constructor Summary
ConstructorsConstructorDescriptionCwtHybridImage
(CwtAwtImage awtImage) CwtHybridImage
(CwtSwtImage swtImage) CwtHybridImage
(BufferedImage bufferedImage) CwtHybridImage
(org.eclipse.swt.graphics.ImageData imageData) -
Method Summary
Modifier and TypeMethodDescriptionprotected CwtAwtImage
protected CwtSwtImage
protected void
drawFromAwt
(CwtAwtGraphicsContext graphicsContext, float x, float y) void
drawFromGraphicsContext
(IGraphicsContext graphicsContext, float x, float y) protected void
drawFromSwt
(CwtSwtGraphicsContext graphicsContext, float x, float y) TheBufferedImage
that represents this image.int
org.eclipse.swt.graphics.Image
getImage
(org.eclipse.swt.graphics.Device device) org.eclipse.swt.graphics.ImageData
int
getWidth()
-
Constructor Details
-
CwtHybridImage
-
CwtHybridImage
-
CwtHybridImage
-
CwtHybridImage
public CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
-
-
Method Details
-
createAwtImage
-
createSwtImage
-
drawFromAwt
-
drawFromGraphicsContext
- Specified by:
drawFromGraphicsContext
in interfaceIImage
-
drawFromSwt
-
getBufferedImage
Description copied from interface:IAwtImage
TheBufferedImage
that represents this image.- Specified by:
getBufferedImage
in interfaceIAwtImage
- Returns:
- The
BufferedImage
that represents this image.
-
getHeight
public int getHeight() -
getImage
public org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device) -
getImageData
public org.eclipse.swt.graphics.ImageData getImageData()- Specified by:
getImageData
in interfaceISwtImage
-
getWidth
public int getWidth()
-