Andrew Higginson wrote:
> So if I am getting the SVG from the brand/ folder in the galaxy icon theme,
> what should I use to read it?
>
Hi Andrew,
ok, some code pointers - look into vcl/source/app/brand.cxx,
Application::LoadBrandBitmap() on how to get to the brand dir - note
those $BRAND_BASE_DI
Hi,
On 28 February 2012 14:55, Thorsten Behrens wrote:
> Andrew Higginson wrote:
> > Sorry still don't understand, what class is the aSvgData? :/
> >
> Hi Andrew,
>
> ah, that was a somewhat made-up example - uno::Sequence
> for the methods I used there. But it really depends on how/where you
> g
Andrew Higginson wrote:
> Sorry still don't understand, what class is the aSvgData? :/
>
Hi Andrew,
ah, that was a somewhat made-up example - uno::Sequence
for the methods I used there. But it really depends on how/where you
get your data read.
HTH,
-- Thorsten
pgpS75qAdVkhj.pgp
Description:
On 27 February 2012 15:04, Thorsten Behrens wrote:
> Andrew Higginson wrote:
> > Thanks, and finally, how do I get the aSvgData?
> >
> Just load your file into that - this RenderGraphic just wants a
> const sal_uInt8* ptr with the utf-8 encoded xml stream. ;)
>
> Cheers,
>
> -- Thorsten
>
Sorry s
Andrew Higginson wrote:
> Thanks, and finally, how do I get the aSvgData?
>
Just load your file into that - this RenderGraphic just wants a
const sal_uInt8* ptr with the utf-8 encoded xml stream. ;)
Cheers,
-- Thorsten
pgpMWjjjB12TW.pgp
Description: PGP signature
__
Hi,
> const ::vcl::RenderGraphicRasterizer aRaster(
> "image/svg+xml",
> aSvgData.getLength(),
> aSvgData.getConstArray() );
>
> BitmapEx aBmpEx = aRaster.Rasterize( Size(200,300) );
>
> Thanks, and finally, how do I get the aSvgData?
--
Andrew Higginson
_
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
> duplicat
Hi,
I am trying to do some work on improving the About Dialog and I need to
be able to rasterize an SVG (which I guess I would have to pack in the
icon themes) to a vcl::BitmapEx
I can see there are various classes (i.e. vcl::SVGReader and
vcl::RenderGraphicRasterizer) which may do the job, howev