Oval framed photo
David Bovill
david at scimatch.org
Fri May 10 07:22:07 EDT 2013
OK - seems like this works:
- Image at back using ink "blendSrcAtop"
- Graphic in front, black filled oval, with ink "blendSrcOver"
- Group both objects and set the ink of the group to "blendSrcOver"
Or use the following scripts:
getprop show_Rounded
> put the ink of me into someInk
> if someInk is "blendSrcOver" then
> return true
> else
> return false
> end if
> end show_Rounded
>
> setprop show_Rounded someBoolean
> put the graphic_Object of me into roundedGraphic
> put the image_Object of me into imageObject
> set the ink of imageObject to "blendSrcAtop"
>
> if someBoolean is true then
> set the ink of me to "blendSrcOver"
> set the ink of roundedGraphic to "blendSrcOver"
> else
> set the ink of me to "srcCopy"
> set the ink of roundedGraphic to "srcCopy"
> end if
> end show_Rounded
>
On 10 May 2013 11:59, David Bovill <david at scimatch.org> wrote:
> Trying to work out the right combination of blends for an image (photo)
> and a graphic oval to create an oval mask. Ideally this is a group so that
> I can change the image and not something which depends on an alpha channel.
>
> Getting close - but nothing quite right yet. Suggestions?
>
More information about the use-livecode
mailing list