如何重新缩放贝塞尔路径
我有一个由 3 或 4 条 uibezierpath 线组成的简单图像。
当我将绘制它们的视图的大小加倍时,它们看起来很模糊,就像高分辨率屏幕上显示的低分辨率图片一样,被拉伸了。有没有办法在任何大小的窗口中重新调整 fir 的路径?谢谢,我知道这可能是一个基本问题,但我没有找到任何相关信息
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 the 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了答案。上下文是可以缩放的。 CGContextScaleCTM。很有魅力
found the answer. contexts can be scaled. CGContextScaleCTM. worked like a charm