[futurebasic] Re: PICT Clipping Rectangles?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Wed, 01 Apr 1998 22:09:40 -0600
David wrote:
>    I have a question about finding/changing the clipping rectangle for
> Pictures created with the PICTURE ON and PICTURE OFF statements.  When these
> pictures are recorded, they are automatically clipped to the size of the
> output window into which they are being drawn/recorded.  All the information
> is there inside the PICT, but it always gets clipped off to the size of the
> original window in which it was recorded.
>    My question is this...  How can I get parts of the picture to draw (at a
> later time in a bigger window), which were off-window when the PICT was
> recorded.  Obviously a Clipping RECT was recorded as part of the PICT, but how
> can I find this rectangle and change it.  

After you execute PICTURE ON (but before you start drawing), change the
clipping region to a larger rectangle.  For example:

   PICTURE ON
   CALL SETRECT(rect, -10000,-10000, 10000,10000)
   CALL CLIPRECT(rect)

the new, larger clip region will be recorded along with the subsequent
drawing commands, and when you re-play the picture later, it will be
clipped to the larger region.

- Rick