Yes, but I chose to ignore it: because, in that way, we could continue our lover's tiff a bit longer.Did you notice the questionmark at the end of my first sentence?
Putting image into a circle shape
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Putting image into a circle shape
Re: Putting image into a circle shape
OK, I fully understand that!
Re: Putting image into a circle shape
Oops, sorry, of course I meant:
I fully understand that, DARLING!
I fully understand that, DARLING!
Re: Putting image into a circle shape
How dare you?
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Putting image into a circle shape
Here a very simple solution, no grouping, no pattern needed.
1. create an opaque circle graphic
2. create your image (layered *over* the circle graphic)
3. set ink of the circle graphic to "blendDstOut"
4. set ink of the image to "blendDstAtop"
script both the graphic and the img with
"on mouseDown; grab me; end mouseDown"
Now you can drag the image by grabbing it within the image's bounds.
OR
You can drag the graphic by grabbing it after scripting: "disable img <nameOfYourImage>" (from msg or button).
Find a full-stack-demo here:
http://forums.livecode.com/viewtopic.ph ... 80#p135480
1. create an opaque circle graphic
2. create your image (layered *over* the circle graphic)
3. set ink of the circle graphic to "blendDstOut"
4. set ink of the image to "blendDstAtop"
script both the graphic and the img with
"on mouseDown; grab me; end mouseDown"
Now you can drag the image by grabbing it within the image's bounds.
OR
You can drag the graphic by grabbing it after scripting: "disable img <nameOfYourImage>" (from msg or button).
Find a full-stack-demo here:
http://forums.livecode.com/viewtopic.ph ... 80#p135480
shiftLock happens
Re: Putting image into a circle shape
Ah, cool, thank you Hermann!
Re: Putting image into a circle shape
Ah, now that's what I was looking for when I mentioned "one of Hermann's nifty stacks".
Re: Putting image into a circle shape
That is pretty cool.