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 CwtAwtImageprotected CwtSwtImageprotected voiddrawFromAwt(CwtAwtGraphicsContext graphicsContext, float x, float y) voiddrawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y) protected voiddrawFromSwt(CwtSwtGraphicsContext graphicsContext, float x, float y) TheBufferedImagethat represents this image.intorg.eclipse.swt.graphics.ImagegetImage(org.eclipse.swt.graphics.Device device) org.eclipse.swt.graphics.ImageDataintgetWidth()
-
Constructor Details
-
CwtHybridImage
-
CwtHybridImage
-
CwtHybridImage
-
CwtHybridImage
public CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
-
-
Method Details
-
createAwtImage
-
createSwtImage
-
drawFromAwt
-
drawFromGraphicsContext
- Specified by:
drawFromGraphicsContextin interfaceIImage
-
drawFromSwt
-
getBufferedImage
Description copied from interface:IAwtImageTheBufferedImagethat represents this image.- Specified by:
getBufferedImagein interfaceIAwtImage- Returns:
- The
BufferedImagethat 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:
getImageDatain interfaceISwtImage
-
getWidth
public int getWidth()
-