Design Challenge -- Round Corner mask on images
Alejandro Tejada
capellan2000 at gmail.com
Tue Mar 29 23:37:46 EDT 2016
Hi,
Glad you liked. :-D
The following step by step recipe works fine
to mask an image with another transparent png image,
unlike the previous script that works only with
an image and a vector graphic.
1) create a new stack and import an image
2) import a PNG image with transparency,
to mask the first image.
You could use PNGs similar to these:
http://photoshop-kopona.com/55559-free-set-of-spring-masks-png-for-photo-design-29-png-frame-masks-free-download.html
Remember: import a png with transparency,
not a black and white png.
3) in this same stack, (that only have two images:
an image and a transparent png image)
create a button and set the script of this button
to this:
on mouseUp
set the locklocation of img 1 to true
import snapshot from img 1
set the loc of last img to the loc of img 1
delete img 1
-- after deleting img 1, img 2 becomes img 1
crop img 2 to the rect of img 1
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
end mouseUp
Have a nice day! :-)
Alejandro
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702767.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list