You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/02/04 02:55:18 UTC

T5: component and image

Hi,

I have a component which renders html correctly, now I'd like to make
another component but render everything into a image, possible? any idea how
to get started with this? thanks.

Angelo

-- 
View this message in context: http://www.nabble.com/T5%3A-component-and-image-tp15261013p15261013.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: component and image

Posted by Renat Zubairov <re...@gmail.com>.
Hello Angelo,

What do you mean everything? Do you want to render an complex HTML table to
image or you want to render a button dynamically?

In T5 it should be quite simple to render image in response because
essentially you just need to send a byte stream back to the client using
StreamResponse

http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/pagenav.html

And here

http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry/StreamResponse.html

The content type should be something like "*image*/*jpeg" *or* "**image*/*
png"* and to render an image in java you can use Java 2D or Java Advanced
Imaging API

For example check here:

http://www.ibm.com/developerworks/library/j-begjava/index.html

or

http://java.sun.com/javase/technologies/desktop/media/

Renat

On 04/02/2008, Angelo Chen <an...@yahoo.com.hk> wrote:
>
>
> Hi,
>
> I have a component which renders html correctly, now I'd like to make
> another component but render everything into a image, possible? any idea
> how
> to get started with this? thanks.
>
> Angelo
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-component-and-image-tp15261013p15261013.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov