Use of the GRAPHICS MODE COPY command
- 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:
- Contact:
Use of the GRAPHICS MODE COPY command
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...
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Use of the GRAPHICS MODE COPY command
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.
Drawing an image in this mode will result just in erased rectangle.
- 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:
- Contact:
Re: Use of the GRAPHICS MODE COPY command
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
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...
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Use of the GRAPHICS MODE COPY command
"CLEAR : R = 0"
means that result pixels are zero in all channels.
means that result pixels are zero in all channels.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Use of the GRAPHICS MODE COPY command
No. These modes are not for filling something. They are modes for applying your drawing commands.ricardobytes wrote:whatever I drew with this command active should be filled with that image.
It affects how your line, rectangle, text or image are drawn over previous graphics.