开发者

How to draw a monochrome image, then "dump" it to a vector with wxWidgets and C++?

开发者 https://www.devze.com 2023-04-06 11:15 出处:网络
I\'m making a program that requires an interface to draw in a 20x20 monochrome grid, then \"dump\" that grid to a boolean vector.

I'm making a program that requires an interface to draw in a 20x20 monochrome grid, then "dump" that grid to a boolean vector.

Curr开发者_JS百科ently 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. Is there a way to do it with wxWidgets, or should I use a different system (e.g. GTK)?


Have a look at the classes in the wxDC hierarchy.

0

精彩评论

暂无评论...
验证码 换一张
取 消