[futurebasic] Re: Copying from one GWorld to another

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

From: Stephen Botting <cauldron@...>
Date: Tue, 15 Jun 1999 22:36:20 +1200
>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 rectangle...and
>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?  Thanks.
>
>John

You could try using COPYMASK, but then you have to have a mask, which is a
bitmap version of your graphic, black regions will copy and white regions
will not.  Just like an ICON.

CALL
COPYMASK(#sourceGWorld&+2,#sourceMaskGWorld&+2,#destinationGWorld&+2,sourceRect,
sourcemaskRect,dstinationRect)


Or you can look into changing the copy mode for COPYBITS, this is the last
parameter you set in CALL COPYBITS.

If you set that to 36 (transparent, I'm unsure of the constant name), all
regions that are the same as the background color will be trasparent.
For more info on the copymodes setting take a look at
http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imClrQuickD
raw.a.htm

Stephen Botting
_____________________________________________________
This message was sent to you from cauldron@...
Visit 43south Productions @ http://www.43south.co.nz
43south Productions - Software for MacOS Computers.
PanZee - http://www.43south.co.nz/products/panzee
GridZone - http://www.43south.co.nz/products/gridzone
_____________________________________________________