Re: Best way to add an image to an oval graphic?

2020-11-12 Thread William de Smet via use-livecode
Thanks all for directing me into a different approach! greetings, William Op wo 11 nov. 2020 om 19:19 schreef Richard Gaskin via use-livecode < use-livecode@lists.runrev.com>: > Using the backgroundPattern seems intuitive, but read the fine print: > image dimensions have very specific

Re: Best way to add an image to an oval graphic?

2020-11-11 Thread Richard Gaskin via use-livecode
Using the backgroundPattern seems intuitive, but read the fine print: image dimensions have very specific requirements, and not heeding those can yield unpredictable results. Earlier this year I had a project that used backgroundPattern as a way to use the graphic shape to mask an image. It

Re: Best way to add an image to an oval graphic?

2020-11-11 Thread J. Landman Gay via use-livecode
Patterns are drawn from the top left so you'd need to create an image with the same dimensions as the oval with its content already centered. This will only work if the oval never changes its size. Another way is to place the image behind the oval graphic and group them. -- Jacqueline Landman

Re: Best way to add an image to an oval graphic?

2020-11-11 Thread Bob Sneidar via use-livecode
I should have said just create an image file the size and appearance that you want it to be, then import it into Livecode. Bob S On Nov 11, 2020, at 8:40 AM, Bob Sneidar via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Ideally though, just create an image file the size and

Re: Best way to add an image to an oval graphic?

2020-11-11 Thread Bob Sneidar via use-livecode
As a pattern of a graphic, I don’t think so. Even scaling the graphic does not shrink or alter the position of the pattern. Why are you using a graphic instead of just an image? I think you can mask an image, so it should be possible to only show through what you want. Ideally though, just

Re: Best way to add an image to an oval graphic?

2020-11-11 Thread William de Smet via use-livecode
Hi Graig, I think I understand it a bit better now. The image I used has different dimensions than the graphic oval. See screenshot: https://ibb.co/0tXkLHy I could scale the image down to the same size (width) as the oval graphic but then I don;t get the center of the image. Because it is a

RE: Best way to add an image to an oval graphic?

2020-11-11 Thread Craig newman via use-livecode
Hi. I made an oval graphic and set the backGroundPattern to the ID of a random image I imported to the card. It filled the grc perfectly. Do you have a screenshot of what you are seeing? Craig -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf

Best way to add an image to an oval graphic?

2020-11-11 Thread William de Smet via use-livecode
Hi there, When I set the BackgroundPattern of an graphic oval to the image ID, the image is not centered inside the oval graphic. What is a better way to add an image to a graphic oval (and center it? greetings, William ___ use-livecode mailing list