objective c - UIImageview shadowpath -


i've noticed when set shadowpath on uiimageview's layer property, kills image quality. can tell me why happens , correct way of doing is?

    imageview.layer.shouldrasterize = yes;     imageview.layer.shadowpath = [uibezierpath bezierpathwithrect:imageview.bounds].cgpath; 

update

it rasterization scale. need set screen's scale. else uses non retina image when creating bitmap!

when set should rasterize on layer yes causes layer draw out contents bitmap. thats why image becomes blurry.

if omit first line graphic quality won't change, if have lot of content hurt performance.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -