> I've just started playing around with vector graphics a little, and
> I've hit a problem.  I would like to scale any given Group2D to the
> size of a window (or canvas) which is resizable.  The scaling is fine
> and easy, so long as I know the maximum bounds in both width and
> height, but I may not necessarily know this.
> 
> Does someone know a way to get this information easily, or am I going
> to have to write a routine to loop through the stored objects and
> work out the maximum bounds manually?


You will have to loop the objects to get the bbox, then also adjust the
center of the group.  Then scaling is so easy.  I have it working with CAD
drawings really nicely.  Live resizing the window from thumbnail to full
screen is smooth and clean as a whistle.

Also, for some reason, use the old renderer - I have no idea why, but
otherwise the drawing is unacceptably slow.   Just MHO.

-seanA


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to