Hi,

I'd like to use Graphics2D to draw an image on ImageView :

<BoxPane styles="{horizontalAlignment:'center',
verticalAlignment:'center'}">
 <ImageView bxml:id="imgview" preferredWidth="64"
preferredHeight="64" styles="{fill:true}" />
 <Label text="My Image" />
</BoxPane>

My code is :
ImageView imgview = (ImageView)
bxmlSerializer.getNamespace().get("imgview");
//put an image in imgview, with the graphic returned from below function

  public Graphics2D makegraphic() {
   Dimension d = new Dimension(200,200);
   //drew a graphics object using this dimension and returned it.
}

Can I get some help with this?
-
Ajay Bhat

Reply via email to