丹·布里克林(Dan Briklin)的笔记记录器画线怎么能这么流畅?

发布于 2024-09-10 11:42:19 字数 206 浏览 0 评论 0原文

我尝试编写一个类似的手绘应用程序。但画线总是有点慢。

如果您编写了类似的应用程序并优化了线条绘制,请解释一下。

Dan 的 Note Taker Lite

I tried to write a similar hand drawing app. But the line drawing is always a little slow.

If you'd written a similar app and got the line drawing optimized, please explain a bit.

Dan's Note Taker Lite.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

甜尕妞 2024-09-17 11:42:19

我会尝试其中一些设置。

请注意AllowAntialiasing 的底部设置。

CGContextBeginPath(context);
CGContextSetInterpolationQuality(context,  kCGInterpolationLow);
CGContextSetAllowsAntialiasing(context, true);

I would try some of these settings.

Note the bottom setting of AllowAntialiasing.

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