Ios-self.layer.shouldrasterize Property

Source: Internet
Author: User

Document Explanation:

/* Whentrue, theLayer isRendered asA bitmapinch  its LocalCoordinate *Space("Rasterized"), Then  theBitmap iscomposited into  the* Destination ( with  theMinificationfilter andMagnificationfilter * Properties of  theLayer appliedif  theBitmap needs scaling). * Rasterization occurs After  theLayer ' s filters andShadow effects * is applied, but before  theOpacity modulation. As an implementation * detail theRendering engine may attempt toCache andReuse the* Bitmap fromOne frame to  theNext. (Whetherit does or  notwould have * no affect on  theRendered output.) * * Whenfalse  theLayer iscomposited directly into  theDestination * Whenever possible (however, certain features of  theCompositing * model may force rasterization, e.g adding filters). * * Defaults toNO. Animatable. */

When Shouldrasterize is set to true, the layer is rendered as a bitmap and cached, and will not be rendered again the next time it is used. The realization of the fillet itself is to do color mixing (blending), if every time the page comes out blending, consumption is too large, then shouldrasterize = yes, the next time is simply to read from the cache of the rendering engine to the bitmap, saving system resources.

If you perform a fillet setting every time you scroll the TableView, you will definitely block the UI, and setting this will make the swipe smoother.

Ios-self.layer.shouldrasterize Property

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.