[译]免费绘画库:易于捕捉/缩放/撤消/重做/复制/粘贴
By robot-v1.0
本文链接 https://www.kyfws.com/applications/a-free-draw-library-easy-to-snap-zoom-undo-redo-co-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1036 个词 阅读量 0[译]免费绘画库:易于捕捉/缩放/撤消/重做/复制/粘贴
原文地址:https://www.codeproject.com/Articles/19348/A-Free-Draw-Library-Easy-to-Snap-zoom-undo-redo-co
原文作者:realtang
译文由本站 robot-v1.0 翻译
前言
*A free draw you can use my example to do *
您可以使用我的示例进行免费抽奖
介绍(Introduction)
在本文中,我介绍了我编写的绘图库.它易于用于绘制形状和管理形状.它提供了常见的功能,例如缩放/撤消/重做/复制/粘贴,并且我提供了如何使用它的示例.(In this article, I introduce a draw library I wrote. It is easy to use for drawing shapes and managing shapes. It provides common features, such as zoom/undo/redo/copy/paste, and I provide a sample of how to use it.)
背景(Background)
好的抽签可以帮助我们解决一些问题.例如,当您查看音频波形或其他波形时,也许您想让绘图工具获得最大位置和最小位置.两年前我分析声音时就明白了.所以我写了一个绘画库.(A good draw can help us to solve some problems. For example, maybe you want a draw tool to get the max position and min position when you view the audio wave or other wave. I got the idea when I analyzed voice two years ago. So I wrote a draw library.)
使用代码(Using the Code)
您可以构建我的示例并运行它.我提供了发行版和调试版.另外,我提供了另一个使用绘图库的演示.所有课程:(You can build my example and run it. I have provided a release version and a debug version. Also, I provided another demo that uses my draw library. All classes:)
class CRTObject
class CRTShape
class CRTLine
....... Other shapes
class CRTAction
class CRTAddAction
class CRTModifyAction
class CRTRemoveAction
class CRTTool
class CRTDrawTool
class CRTLineTool
...... Other DrawTools
class CRTViewTool
class CRTModifyTool
class CRTSelectTool
class CRTRemoveTool
class CRTDrawView
class CRTDrawDoc
class CRTObjectsList
class CRTShapesList
class CRTDataMgr
class CRTViewEnv
class CRTDrawParam
class CRTClipboard
class CRTDC
class CRTMath
class RTPoint
class RTRect
class RTSize
您可以使用CRTViewTool进行缩放,使用CRTActionMgr进行撤消/重做以及使用CRTClipboard进行复制/剪切/粘贴.我将继续添加一些功能和一些类.如果您告诉我您使用我的绘图库,我将非常高兴和高兴.如果需要我的帮助,我会告诉您如何使用它.源代码不是公开的,但是该库是免费的,您可以使用它.在ZIP包中,有一个RTDemon应用程序.您可以在此处下载最新版本:(You can use CRTViewTool to zoom, use CRTActionMgr to do undo/redo and use CRTClipboard to do copy/cut/paste. I will continue to add some features and some classes. I am glad and happy if you tell me you use my draw library. And I will tell you how to use it if you need my help. The source code is not public, but the library is free and you can use it. In the ZIP package, there is an RTDemon application. You can download the latest version here:) RTDemon.zip(RTDemon.zip) 您也可以下载最新的(.You can also download the latest) RTDesktopDraw(RTDesktopDraw) ZIP文件. RTDraw中存在一些错误.我将修复它们并提高RTDraw的可靠性和稳定性.(ZIP file. There are some bugs in RTDraw. I will fix them and improve the reliability and stability of RTDraw.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ WinXP Win2003 Vista Windows Win2K GDI Visual-Studio Dev 新闻 翻译