Use of the GRAPHICS MODE COPY command

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Use of the GRAPHICS MODE COPY command

Post 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.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Use of the GRAPHICS MODE COPY command

Post 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.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Use of the GRAPHICS MODE COPY command

Post 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
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Use of the GRAPHICS MODE COPY command

Post by Mr. Kibernetik »

"CLEAR : R = 0"

means that result pixels are zero in all channels.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Use of the GRAPHICS MODE COPY command

Post 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.

Post Reply