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