简体   繁体   English

如何绘制单色图像,然后使用wxWidgets和C ++将其“转储”到矢量中?

[英]How to draw a monochrome image, then “dump” it to a vector with wxWidgets and C++?

I'm making a program that requires an interface to draw in a 20x20 monochrome grid, then "dump" that grid to a boolean vector. 我正在编写一个程序,该程序需要一个界面来绘制20x20单色网格,然后将该网格“转储”到布尔向量。

Currently I'm programming it with C++ and wxWidgets, but haven't found a way to create a grid to draw on, much less to "dump" said grid to a vector. 目前,我正在使用C ++和wxWidgets对其进行编程,但是还没有找到创建可绘制网格的方法,更不用说将网格“转储”到矢量了。 Is there a way to do it with wxWidgets, or should I use a different system (eg GTK)? 有什么办法可以使用wxWidgets进行操作,还是应该使用其他系统(例如GTK)?

看一下wxDC层次结构中的类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM