简体   繁体   中英

How to use Rectangle as an opacity mask

I'm trying to make a Layer Mask for black area in my image,I have an image like this:

在此处输入图片说明

I draw an rectangle on it:

在此处输入图片说明

how can i make a mask that show following image(White area 100% transparent and Black area with mask color)

在此处输入图片说明

  1. In any image editor select all white color and remove it.
  2. Save image in PNG format.
  3. Use it in XAML like an opacity mask.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM