开发者

how to rescale a bezierpath

开发者 https://www.devze.com 2023-03-16 06:25 出处:网络
I have a simple image made from 3 or 4 uibezierpath lines. when i double the size of the view in which they are drawn, they look fuzzy, like a low resolution pic displayed on a high resolution screen

I have a simple image made from 3 or 4 uibezierpath lines.

when i double the size of the view in which they are drawn, they look fuzzy, like a low resolution pic displayed on a high resolution screen, stretched out. is there a way to rescale t开发者_如何学运维he path to fir in any size window? thanks, i know this might be a basic question, but i haven't found any information about it


found the answer. contexts can be scaled. CGContextScaleCTM. worked like a charm

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号