Jacqueline Gay’s suggestion is excellent, and by exactly aligning the rect of
the polygon with the rect of the image being “trimmed”, I can avoid having the
image centered or repeated. See script below.
I am still wondering what goes wrong with my alphaChannel approach to showing
On 10/16/21 2:17 PM, David Epstein via use-livecode wrote:
I am trying to create an image that will appear to have the shape of some
arbitrary polygon. The idea is to set the image's alphaData so that pixels
within the polygon are opaque, and those outside the polygon are transparent.
The
Sorry, I am carrying this over to the Forums as I have a pictorial mind.
https://forums.livecode.com/viewtopic.php?f=7=36367
Richmond.
On 16.10.21 23:04, Richmond wrote:
Also, this presupposes that your 'arbitrary polygon' is exactly that,
while LiveCode starts a 'polygon graphic' as
a line,
Also, this presupposes that your 'arbitrary polygon' is exactly that,
while LiveCode starts a 'polygon graphic' as
a line, and it is quite possible to end up with something that does NOT
involve an enclosed territory.
On 16.10.21 23:00, Richmond wrote:
I'm a lazy slob, and because of that I
I'm a lazy slob, and because of that I would just do this sort of thing
outwith LiveCode,
with, say, GIMP.
If you could explain your rationale behind trying to go "the long way
round" in LiveCode
I might be both more sympathetic and more helpful.
Best, Richmond.
On 16.10.21 22:17, David