[futurebasic] Capturing a portion of a Picture

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2003 : Group Archive : Group : All Groups

From: Barrie <barrie@...>
Date: Sat, 18 Oct 2003 23:18:22 -0400
A picture resource is placed in a window.
Text is then put on top of the picture.
I want to erase the text without disturbing the background.
Since the picture has gradient colors, I thought I could grab a portion of
the picture (under the text) before placing the text. Then replace the
virgin portion on top of the text to erase it. I tried the following:
'
'
DRAWPICTURE (backgroundPicture&,bigRect)
'
SETRECT(myRect,L,T,R,B)
picturePortion& = USR GETPICT(myRect)
PRINT% (L,B) "The message"
DELAY (5000)
DRAWPICTURE (picturePortion&,myRect)
The above did not work. The USR GETPICT(myRect) does not capture the
background. Any suggestions?
Barrie