Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Caolan McNamara wrote:
So I have a graphic::XGraphic and I want to draw it onto a
rendering::XCanvas. How do I do that?

I mean, XCanvas has a drawBitmap which takes a rendering::XBitmap but
it's not clear to me how to get from graphic::XGraphic to
rendering::XBitmap or if that's even the right approach.

Well, XGraphic can contain other things but bitmaps. Bitmaps are
easy, vcl bitmaps convert trivially to rendering::XBitmaps.

Alternatively, if I have a
drawinglayer::primitive2d::Primitive2DSequence can I relatively easily
draw that on a cppcanvas::CanvasSharedPtr ?

There was (before it got killed by dead code hunters) a prototype
XCanvas renderer for Primitives in drawinglayer. Resurrecting that and
making it basically useful should not be prohibitive. If that is an
option, feel free to poke me on Monday, I might be able to lend a
helping hand.

HTH,

-- Thorsten

Attachment: signature.asc
Description: Digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.