Set the rendering mode of UIImage: UIImage. renderingMode,

Source: Internet
Author: User

Set the rendering mode of UIImage: UIImage. renderingMode,

Set the rendering mode of UIImage: UIImage. renderingMode

Tint Color is a rendering mode on the iOS7 interface. You can set the UIImage rendering mode to a major change in UIImage. renderingMode. You can set whether a UIImage uses the Tint Color of the current view during rendering. UIImage adds a read-only attribute: renderingMode, which corresponds to another method: imageWithRenderingMode:. It uses the UIImageRenderingMode enumeration value to set the renderingMode attribute of the image. This enumeration contains the following values:

The default value of the renderingMode attribute is UIImageRenderingModeAutomatic, that is, whether or not the UIImage uses Tint Color depends on the position it is displayed. For other cases, see the following example.

The following code illustrates how easy it is to create an image using an established rendering mode:

Related Article

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.