I have drawn one rectangle by using RectangleFigure in draw2d. Am able to setBackgroundColor,setForegroundColor....How i need to draw a image inside RectangleFigure.
Thanks in Advance.
I have drawn one rectangle by using RectangleFigure in draw2d. Am able to setBackgroundColor,setForegroundColor....How i need to draw a image inside RectangleFigure.
Thanks in Advance.
Extend your figure from
org.eclipse.draw2d.ImageFigureclass.In constructor you can pass
org.eclipse.swt.graphics.Imagewhich can be passed to super class.