Hello Joe,

We use gd for this, which is demonstrated in the mandelbrot example,
and in the style example, but you can use any library you like.

The style example uses a WMemoryResource to serve the resulting image,
while the mandelbrot image specializes a WResource. Specializing a
WResource has the advantage that the image is generated on the fly
when it is requested (it is not stored in memory), and when the
browser requests multiple resources in parallel, the images will be
calculated in parallel too.

I'm not sure if you ask for it, but it is currently not possible to
let Wt's vector graphics painters generate raster images (we
acknowledge that this would be useful in certain cases, but had no
specific requests to implement this so far). As a temporary solution,
you can use the vector graphics painters to generate SVG, and then use
inkscape to convert the SVG to a bitmap. This wikipedia article
explains how you can extract raw SVG output from our painters:
http://www.webtoolkit.eu/wt/wiki/index.php/Tips_and_Tricks

Hope this helps,
Wim.

2009/7/1 joe walko <[email protected]>:
> Hey guys,
>
> Are there methods in Wt capable of dynamically creating raster images
> (JPEG, PNG, etc) on the server side?  Sorry if I missed something big,
> I looked through the source and docs, but couldn't tell for sure.
>
> Thanks,
>
> Joe
>
> ------------------------------------------------------------------------------
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to