如何重新缩放贝塞尔路径

发布于 2024-11-17 18:45:05 字数 160 浏览 5 评论 0原文

我有一个由 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天冷不及心凉 2024-11-24 18:45:05

找到了答案。上下文是可以缩放的。 CGContextScaleCTM。很有魅力

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文