Hi Bernard, *,

Bernard Marcelly wrote (3-2-2009 19:29)
Message de Cor Nouws  date 2009-02-03 12:34 :
[...]
The line:
   lPictureSoureceRatio = oGraph.GraphicObjectFillBitmap.Size.Height
              / oGraph.GraphicObjectFillBitmap.Size.Width
produces error "Instance member GraphicObjectFillBitmap does not exist"

OTOH, the line:
   lPictureSoureceRatio = oGraph.Graphic.Size.Height
              / oGraph.Graphic.Size.Width
works fine, but does not necessarily have to give the correct result.


See IDL description of service com.sun.star.drawing.GraphicObjectShape
GraphicObjectFillBitmap :
Deprecated. Use graphic property instead!

ok... but I do not have problems using it in OOo's Basic environment.

You have to insert the image in the document first. Only then you can get useful information from Graphic.

The graphic is placed in the document already.

But both oGraphic.Size and oGraphic.Bitmap.Size give the values in which the graphic is displayed.

oGraphObjectFillBitmap.Size shows the original size. And I need that to set the right dimensions. (When the graphic is placed in a cell, the size may be altered disproportionally. I need to correct that.)

I do not see any other property that could help me.

Any idea ?

Thanks so far,

Cor


--
Cor Nouws    -    nl.OpenOffice.org marketing contact
=  "2009 - Grow OOo"   =    www.nieuwsteoffice.nl   =

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to