is NOT true.graphic objects WILL behave like the images they have as backGroundPatterns insofar as whether
mouseDown/Up clicks get a reaction out of transparent areas.
"opaque pixels"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
I should apologise because this:
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
so that's not the aswer?richmond62 wrote: ↑Sun Jan 23, 2022 7:38 pmI should apologise because this:
is NOT true.graphic objects WILL behave like the images they have as backGroundPatterns insofar as whether
mouseDown/Up clicks get a reaction out of transparent areas.
Samuele.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
No, I am afraid it isn't.
One answer might be to convert your PNG images with transparency to GIF images: they should get much smaller.
One answer might be to convert your PNG images with transparency to GIF images: they should get much smaller.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
Alternatively, if you are concerned that the stack size will increase because you have multiple copies of the same image on multiple cards, make the image a group and set it to be a background group. The same image will appear in the same place on all new cards (you can place it on existing cards with the place object menu item). That way you will have just the one image on multiple cards.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
I don't know about Samuele, Stam, but I would like to thank you for telling me somethingAlternatively
I did not know about after 20 odd years of working with RunRev/LiveCode.
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: "opaque pixels"
What is all this hoopla??
The "mouseColor" returns the color of the pixel the cursor is over. If it is "blank", or "empty", assuming an "ordinary' card, the function will return "255,255,255". If not, that is, if there is something "there", you will get another value.
Is this not what the OP wanted?
Craig
The "mouseColor" returns the color of the pixel the cursor is over. If it is "blank", or "empty", assuming an "ordinary' card, the function will return "255,255,255". If not, that is, if there is something "there", you will get another value.
Is this not what the OP wanted?
Craig
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
I think the topic has drifted somewhat since that question was (at least partly) answered.What is all this hoopla??
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: "opaque pixels"
JPEG is the smallest format, particularly because you can set the compression to the smallest size that will still display correctly on the screen.
Edit: It doesn't support transparency though, so not suitable here.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: "opaque pixels"
Richmond
Certainly, if the backColor of the card is something in particular, then that would be the "empty" value.
The only reason I can see for these other image-heavy solutions is if the "backColor" of the card is itself an image, or a pattern or color of some kind.
Craig
Indeed, but to my mind the use of these extra gadgets is a kludge. I assert that LC can do the job without one.I think the topic has drifted somewhat since that question was (at least partly) answered.
Certainly, if the backColor of the card is something in particular, then that would be the "empty" value.
The only reason I can see for these other image-heavy solutions is if the "backColor" of the card is itself an image, or a pattern or color of some kind.
Craig
Last edited by dunbarx on Mon Jan 24, 2022 9:39 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
I suspect you are right.The only reason I can see for these other image-heavy solutions is if the "backColor" of the card is itself an image, or a pattern of some kind.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: "opaque pixels"
So, taking advice from Craig, and advice from myself about displaying an image as
a backGroundPattern in a Graphic Rectangle:
-
a backGroundPattern in a Graphic Rectangle:
-
- Attachments
-
- Multiple usage X.livecode.zip
- Here's the stack.
- (71.7 KiB) Downloaded 72 times