Andrew Higginson wrote:
I can see there are various classes (i.e. vcl::SVGReader and vcl::RenderGraphicRasterizer) which may do the job, however I need to rasterize it to a specific resolution (pretty much what vcl::RenderGraphicRasterizer::Rasterize does) however I don't want to duplicate any code.
Hi Andrew,
this should do:
const ::vcl::RenderGraphicRasterizer aRaster(
"image/svg+xml",
aSvgData.getLength(),
aSvgData.getConstArray() );
BitmapEx aBmpEx = aRaster.Rasterize( Size(200,300) );
(with your desired size filled in above, of course)
HTH,
-- Thorsten
Attachment:
pgpWZsZUu1uUP.pgp
Description: PGP signature