On Thu, 10 Mar 2005 08:15:51 -0800, Jonathan Locke wrote:

>not really advisable.  you should use a regular img tag or wait for css 
>support i think...

        If I could do round corners with normal <img> tags, I would,
but to the best of my knowledge this is impossible because all the
classic html tags are of type "display:block" which means they get ugly
spacing around them which will cause the round corner to misalign in
unpredictable ways across browsers. Really, I don't think I have much
choice. If I wanted to subclass Image to change this behavior, how
would I do it?

>>      RenderedDynamicImageResource regenerates the image on every
>>rendering. I don't need that. I only regenerate the image if the corner
>>size or color has changed, which is rare. Frankly, I doubt anyone
>>should really use RenderedDynamicImageResource in its current form as
>>it does not yield itself to caching too well. With the buffered dynamic
>>image, you can at least render-on-demand by overriding onRender() and
>>checking for changes.
>>  
>>
>not anymore!  (when i updated javadocs i changed this.  the image data 
>is now cached in a transient field)

        The fact that it is transient does not solve the problem I
mentioned. What I am saying is that if I render the exact same corner
multiple times (by hitting refresh on my browser 1000 times) then
render(Graphics2D) will get triggered 1000 times and I will have to
repaint it. What I am saying is that I know for a fact when the image
needs to be regenerated and when it should use the cached version and
RenderedDynamicImageResource does not give me the capability to do much
about it. The most I can do is g2d.drawImage(cachedImage) I guess but I
doubt it is as efficient as just giving it the BufferedImage
directly... I don't want to be cloning the image contents on every
rendering if I don't have to.

Gili



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to