[futurebasic] Re: Flatten a PICT

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

From: Mars Saxman <marssaxman@...>
Date: Wed, 29 Apr 98 22:44:22 -0800
>Anyone have a "magic wand" function I could use to do this? I can create
>the GWORLD, get the PICT into it, and then, ah, my wand breaks. I tried
>copybits to the printer from the GWORLD, nice effect. Bad wand again.

You're close. Don't copybits from the gworld to the printer - copybits 
from the gworld to the gworld.

DIM myPic&
myPic& = FN OPENPICTURE(gworldFrame)
CALL COPYBITS(gworld, gworld, gworldFrame, gworldFrame, you know the 
drill)
CALL CLOSEPICTURE

myPic& is now a copy of the contents of the GWorld. (Copying a picture on 
top of itself leaves no visible effects, but if you have a picture open, 
the copy operation gets saved in the picture.) You can draw this to the 
printer and it will execute as one bitmap operation instead of many 
line-draw operations.

Hope it helps.

-Mars