Design Challenge -- Round Corner mask on images
Alejandro Tejada
capellan2000 at gmail.com
Wed Mar 30 19:59:45 EDT 2016
Hi Bernd,
BNig wrote
> for inks you have to make a screenshot from the system-view
>
> ------------------------------
> on mouseUp
> put the rect of image "sourceImg" into tSourceRect
> put item 1 to 2 of tSourceRect into tTopLeft
> put item 3 to 4 of tSourceRect into tBotRight
> put globalLoc(tTopLeft) into tTopLeft
> put globalLoc(tBotRight) into tBotRight
> export snapshot from rect (tTopLeft & "," & tBotRight) to image "myImg"
> as png
> end mouseUp
> -----------------------------
>
> But I think transparency is lost, but you get the ink-mode
> Tried with notSrcCopy and blendExclusion.
> Worked all right.
Great! I hadn't thought of that possibility
of using a card screenshot. :-D
Certainly, transparency is lost (alphadata)
but could be restored (copied) from
the original image:
> set the width of img 1 to the width of img 2
> set the height of img 1 to the height of img 2
> set the alphadata of image 2 to the alphadata of image 1
Many thanks again! :-)
Alejandro
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702838.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list