[futurebasic] Re: [FB] Can one save an Animated PICT?

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

From: Robert Purves <robert.purves@...>
Date: Fri, 9 Apr 1999 22:22:28 +1200
>I would like to be able to change the colours of a PICT image.
>I have tried to do this as follows.
>1. I opened and drew the PICT in an offscreen world, loaded with the
>PICT's colour table. (The test PICT was a red square)
>2. I then copied this to the screen window with CopyBits and changed its
>colours by calling AnimatePalette with a second colour table.
>The red square turned blue.
>3. I bracketed some of these commands with FN OPENPICTURE and CALL
>CLOSEPICTURE.
>4. Whatever I tried, the saved PICT was always the initial red square and
>not the final blue square.


Not all "drawing" commands are saved into a picture definition. COPYBITS
is, but some others (including COPYMASK, SCROLLRECT, and unfortunately for
you, the palette manager calls) are not. The simplest solution would be to
do a USR GETPICT on the screen window.

Robert