Re: spotting a mouseclick in the transparent area of an image

2017-04-06 Thread Ben Rubinstein via use-livecode
Hi Paul, Thanks for this - this was the perfect solution for my needs. (I just modified the loading script to add three lines: grab the alphaData, replace numtobyte(0) with numtobyte(1), put it back...). cheers, Ben On 03/04/2017 04:29, Paul Hibbert via use-livecode wrote: Ben, if you coul

Re: spotting a mouseclick in the transparent area of an image

2017-04-02 Thread Paul Hibbert via use-livecode
Ben, if you could edit the PNGs to add a 1% tone to the transparent areas (maybe with a batch process) this allows LC to accept the clicks within the image area. The advantage of this is you could have a 1 % tone inside the area you need be active and completely transparent where you don’t want

Re: spotting a mouseclick in the transparent area of an image

2017-03-30 Thread Mike Bonner via use-livecode
Place a grc of the right size behind the image. Make sure the grc is set to opaque. Group the grc and the image and place your mouseup handler in the group. If they click a visible portion of the image it'll fire the groups mouseup, if they click a trasnarent spot, the (blended and invisible) grc

spotting a mouseclick in the transparent area of an image

2017-03-30 Thread Ben Rubinstein via use-livecode
I have a group containing a grid of square images. Some of the images are gifs, some are pngs, and some of the latter have an alpha channel with some transparent bits. The images are all used as buttons, to control something else - the images in essence are labels or icons for the buttons. Th