mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
4f644756f6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@575 0fc631ac-6414-0410-93d0-97cfa31319b6
22 lines
929 B
Plaintext
22 lines
929 B
Plaintext
Function: set_mask
|
|
|
|
--Usage--
|
|
> set_mask(image: image, mask: mask_image)
|
|
|
|
Make parts of an image (more) transparent using a mask.
|
|
Black areas in the mask make the image transparent, white areas stay opaque.
|
|
|
|
The images must have the same size.
|
|
|
|
--Parameters--
|
|
! Parameter Type Description
|
|
| @image@ [[type:image]] Image to apply the mask to
|
|
| @mask@ [[type:image]] Mask image.
|
|
|
|
--Examples--
|
|
> set_mask(image: "image1.png", mask: "image3.png") == [[Image]]
|
|
>>> set_mask(image: <img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, mask: <img src="image3.png" alt='"image3.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />) == <img src="image_set_mask.png" alt='"image_set_mask.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
|
|
|
--See also--
|
|
| [[fun:set_alpha]] Change the transparency of an image.
|