Page 1 of 1

Use of the GRAPHICS MODE COPY command

Posted: Fri Aug 28, 2015 10:32 pm
by rbytes
I have tried writing code to see if I could use this command to draw shapes or letters filled with a pattern copied from an image. So far, no success. The problem is that I don't really know how to make an image the S source as suggested in the documentation. I have used the DRAW IMAGE command without success. I'm sure there is a simple solution. A code example would be much appreciated.

Re: Use of the GRAPHICS MODE COPY command

Posted: Sat Aug 29, 2015 3:17 am
by Mr. Kibernetik
What do you mean with "use this command to draw shapes or letters filled with a pattern copied from an image"?

Drawing an image in this mode will result just in erased rectangle.

Re: Use of the GRAPHICS MODE COPY command

Posted: Sat Aug 29, 2015 3:31 am
by rbytes
I could not find any example code for GRAPHICS MODE COPY, so all I have to work with is this description in the documentation:

COPY : R = S. Replaces background with source image.

That certainly sounds to me that if I knew how to define a source image, then whatever I drew with this command active should be filled with that image.

I base my expectation on what happens when I use GRAPHICS MODE CLEAR. According to the documentation:

CLEAR : R = 0. Effectively removes background.

If my concept of GRAPHICS MODE COPY is wrong, please describe what it does do.

Thanks

Re: Use of the GRAPHICS MODE COPY command

Posted: Sat Aug 29, 2015 3:35 am
by Mr. Kibernetik
"CLEAR : R = 0"

means that result pixels are zero in all channels.

Re: Use of the GRAPHICS MODE COPY command

Posted: Sat Aug 29, 2015 3:49 am
by Mr. Kibernetik
ricardobytes wrote:whatever I drew with this command active should be filled with that image.
No. These modes are not for filling something. They are modes for applying your drawing commands.
It affects how your line, rectangle, text or image are drawn over previous graphics.