[futurebasic] Re: [FB] Copying from one GWorld to another

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

From: PRITCHA@...
Date: Tue, 15 Jun 1999 10:41:16 +0100

>>>Hi, I need some help.  I'm trying to copy a picture from one Gworld to
>>>another but I have a problem.  The picture isn't a perfect
>>>when I try to copy the picture to the other GWorld, it pastes the whole
>>>rectangle that I copied.  Is there any way to copy just the picture?
>>I think setting
>>PEN ,,,_srcOr
>before COPYBITS will do what you need, I think.
>As another approach, the copybits command will take a mask region as its
>last parameter, so if your picture can be masked, that may be the way to

which expects three gworlds and rects
Gworld 1 - picture you want
Gworld2 - b&w gworld with the "mask" drawn within it of what you want to
Gworld3 - destination gworld - can be the screen, I should think.

This is more flexible than using a mask region... I've yet to see an
example of a mask region being used
so it might be faster than the COPYMASK method I described...