有没有这样的图形库?

发布于 2024-12-13 14:23:49 字数 253 浏览 4 评论 0原文

有没有满足以下要求的图库?

  1. 可以画点、线、圆。
  2. 画布尺寸可以自动扩展。
  3. 支持负坐标。
  4. 可以输出到 png 或任何矢量图(如 svg)。
  5. 可以绘制字符(仅限英文)(甚至以一定角度旋转的字符),

例如 我画了 2 个点 (-1,-1) (1,1)。 它会输出一张 2x2 大小的图片。这个左上角就是点(-1,-1)。右下角是点 (1,1)

谢谢。

IS there any graphic library meeting the following requirement.

  1. can draw a point, a line, and a circle.
  2. the size of canvas can be extended automatically.
  3. support negative coordinates.
  4. can output to png or any vectorgraph(like svg).
  5. can draw characters (english only) (even characters rotated at a certain angle)

for e.g.
I draw 2 point (-1,-1) (1,1).
it will output a 2x2 sized picture. This left-top is the point(-1,-1). and the right-bottom is the point (1,1)

thanks.

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

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

发布评论

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

评论(1

那支青花 2024-12-20 14:23:49

是的,当然有几个。我建议你看一下并学习 OpenGL。您可以在 Windows、Mac、Linux、iOS、Android 上运行它。

它支持 2D 和 3D 渲染,尽管比 CoreGraphics 等常规 2D 图形库更复杂,但它也更强大。

Yes, of course there are a couple of them. I would suggest you take a look and learn OpenGL. You can run it on Windows, Mac, Linux, iOS, Android, you name it.

It supports 2D and 3D rendering, and, even though is more complex than a regular 2D graphics library like CoreGraphics, it also more powerful.

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