Use the Ugui method to achieve the image mask, fillet picture, circular picture effect

Source: Internet
Author: User

Achieve the rounded effect of the picture, circular picture effect, is a very common function, as follows


A lot of people will use shader to do, but too much trouble, online about Ugui to achieve this effect of the method I have not found

I know here is a very simple method, without writing a line of code

Now I'm going to tell you


The principle is to use mask masks to achieve

The first step:

Create the following directory structure, Avatar is need to deal with pictures, such as Avatar, etc.


Step Two:

Add two controls to mask, image and mask

ImageSource inside put graphic pictures, such as to round the effect, just put in a circular picture, find the art to or do it all very easy, such as the round corner of the following


Mask Show Mask Graphic do not choose, so you add the picture will not show up, will only show his shape



And then just



It's done.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.