怎么可以画像windows的mspaint曲线然后我可以选择一些行来擦除? [英] How could draw curves like windows' mspaint and then I could select some line to erase?

查看:64
本文介绍了怎么可以画像windows的mspaint曲线然后我可以选择一些行来擦除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所说,该程序在win32平台上运行;

就像powerpoint文件演示一样,教师可以使用鼠标绘图,如果(图形)行没用,可以选择它们并删除;

任何人都可以帮我分析技术点或API使用?谢谢!



我尝试了什么:



我没有想法...很抱歉..寻求解决方案,再次感谢!

as the title says, the program runs on the win32 platform;
like the powerpoint file demonstration,the teacher could use mouse drawing,if the (graphics)lines are useless,they could be selected and deleted;
anyone could help me analyse the tech-point or API using? thank you !

What I have tried:

I have no ideas ...so sorry..asking for solution,thanks once more!

推荐答案

您可以使用 Windows GDI [ ^ ]绘制线条,曲线等。参见Win32编程 - 功能X [ ^ ]一些有用的教程。
You can use Windows GDI[^] to draw lines, curves etc. See Win32 Programming - FunctionX[^] for some useful tutorials.


你可以把图表编辑器 [ ^ ]作为示例并基于扩展其功能提供的基类



或DrawCLI示例(在Visual Studio Samples Pack中)可以作为启动项目的另一个例子



但是这两个项目都基于MFC,如果使用MFC是个问题,那么你可以轻松地将图编辑器移植到Win32



对于不规则形状的命中测试,我建议使用GDI +代替GDI
You can take Diagram Editor[^] as an example and extend its functionality based on the provided base classes

Or DrawCLI sample (in Visual Studio Samples Pack) can be another example as a startup project

But these two projects are based on MFC ,if use of MFC is a problem then you can easily port Diagram Editor to Win32

For hit testing on irregular shapes i would recommend to use of GDI+ instead of GDI


这篇关于怎么可以画像windows的mspaint曲线然后我可以选择一些行来擦除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆