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
Post a Comment