Oval framed photo
Roger Guay
irog at mac.com
Fri May 10 08:14:13 EDT 2013
Hi David,
Seems to me that the ideal solution to you problem is to make the image the backgroundPattern of your oval.
Roger
On May 10, 2013, at 4:22 AM, David Bovill <david at scimatch.org> wrote:
> 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?
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list