Hi Thorsten,

>>I'm not sure this is needed at the simplified version. I'm not even sure
>>I know what this is good for in general ;)
> 
> Might come in handy when you need rotated bitmaps or text.

If it's mainly about rotation, then add a method "setRotation" (or so).
Clients of this interface - remember: convenience, simplyfied, and so -
will not know how to create an "AffineMatrix2D" when they want to rotate
their bitmap by 90 degrees.

>>I assume that aPoint is in pixel coordinates. If so, what's the sense in
>>having *real* coordinates, instead of integers? Just wondering.
> 
> In concert with transformations, this does make sense. Apart from
> that, it keeps the interface consistent (having real coordinates for
> e.g. lines is AFAICT uncontroversial - XCanvas has anti-aliasing
> implementations).

Okay.

>>Lot of other APIs use css.graphic.XGraphic. Since XSimpleCanvas is going
>>to be a convenience interface, there should be either an easy way to
>>obtain an XBitmap from an XGraphic, or a method taking an XGraphic.
> 
> Naa, lots? I count 9...

Okay, let me say it the other way round: The usual way to retrieve
*ready-made* images today is from the XGraphicProvider, which gives you
an XGraphic. So as long as you don't have a bitmap copied from some
other device, or created programmatically, you will probably load it
from some file or resource or so, and then have an XGraphic. The
XSimpleCanvas should /somehow/ be able to cope with this.

> ...but of course you're right, from an ease-of-use POV. Is a helper
> service acceptable, that can convert an XGraphic into an XBitmap, or
> alternatively render an XGraphic to an XCanvas (complementing the
> GraphicRendererVCL service)?

The second sounds like too much indirections to me. Conversion would be
better. Even better, IMO, would be a drawGraphic :)

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Database                   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to