Sorry, it took me a bit to get back to this problem. Do you mean I can do
this:

    org.apache.wicket.markup.html.image.Image wicketImage;
    wicketImage = new Image("img", new ResourceReference(ImageAnchor.class,
"image.png")); 

    RenderedDynamicImageResource wicketImageResource;
    wicketImageResource = new RenderedDynamicImageResource(1013,1276, "png")
{                       
        protected boolean render(Graphics2D graphics) {
            graphics.drawString(user.getName(), 443, 215);
            return true;
        }
    };
    wicketImageResource.render(/* Somehow get wicketImage's Graphics
attribute in here */);

    add(new Image("theImage", wicketImageResource));
    
As you can tell, my difficulty is still in how I can grab the Image using
the ResourceReference and then draw a String onto it. I hope this clarifies
where I'm having trouble. Thanks again for your help.


jwcarman wrote:
> 
> You can use Graphics2D's drawImage() method can't you?
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Image--%3E-Java-Image-tp19034138p19099200.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to