draw a graphic::XGraphic on a rendering::XCanvas ?

Caolán McNamara caolanm at redhat.com
Fri Oct 4 12:26:24 PDT 2013

On Thu, 2013-10-03 at 23:42 +0200, Thorsten Behrens wrote:
> 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.

Fair enough, that's all I fundamentally want to do in this case
(507c1c9905ce02c376be4e57a937cde8d01d2c26) anyway. Does seem a bit odd
that we seem to have so much parallel stacks of drawing infrastructures.


More information about the LibreOffice mailing list