Oval framed photo

Mike Bonner bonnmike at gmail.com
Fri May 10 07:56:44 EDT 2013


Would it work to size the picture appropriately, (as you're already doing)
set your oval to opaque, and set the background pattern to the image?  Then
to change the image just change the background pattern of the oval.


On Fri, May 10, 2013 at 5: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