单色位图库
我正在尝试创建一个可用于创建非常大(10000x10000)大小的位图的软件。我所需要的只是可以单色工作的东西,因为所需的输出是一个包含位图中黑白像素细节的矩阵。我能想到的最接近的是字体编辑器,但大小是一个问题。
是否有任何库可供我用来创建软件,或者我必须从头开始编写整个内容?
5 月 25 日编辑:好的,所以我一直在搜索,我发现使用 GtkTree Widget 是创建网格的好方法。有人尝试过我需要的大尺寸吗?如果是这样,是否可以使其看起来像绘图表面而不是类似电子表格的视图?
I am trying to create a piece of software that can be used to create VERY large (10000x10000) sized bitmaps. All I need is something that can work in monochrome, since the required output is a matrix containing details of black and white pixels in the bitmap. The closest thing I can think of is a font editor, but the size is a problem.
Is there any library out there that I can use to create the software, or will I have to write the whole thing from the start?
Edited on May 25: OK, so I've been searching around and I have found that using the GtkTree Widget is a good way to create grids. Has anybody tried that with the large sizes that I require? And if so, can it be made to look like a drawing surface rather than a Spreadsheet like view?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果使用 GTK,为什么不使用位图对象,例如 gdk 像素图?
深度为 1(单色)的 10,000 x 10,000 像素为 100,000,000 位,即 12,500,000 字节,大约 12 兆字节。
没那么大。
Why don't you use bitmap objects, like gdk pixmaps if you use GTK?
10,000 x 10,000 pixels with a depth of 1 (monochrome) is 100,000,000 bits, which is 12,500,000 bytes, around 12 megabytes.
Not that large.