DrawKit 1.0.0

dotnet add package DrawKit --version 1.0.0
                    
NuGet\Install-Package DrawKit -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DrawKit" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DrawKit" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DrawKit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DrawKit --version 1.0.0
                    
#r "nuget: DrawKit, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DrawKit@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DrawKit&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DrawKit&version=1.0.0
                    
Install as a Cake Tool

DrawKit

这是一个基于 .NET Framework 4.7.2 开发的轻量级 WinForms 图形绘制应用程序,灵感来源于 Windows 10/11 自带的“画图”工具。本项目旨在通过原生 WinForm 技术实现一个基础但功能完整的绘图软件,适合初学者学习图形界面开发、GDI+ 绘图技术以及事件驱动编程思想,无任何第三方库依赖。

功能特性

  • 鼠标自由绘制直线、矩形、圆形、三角形等基本图形

  • 支持设置线条颜色与粗细

  • 支持撤销重做

  • 支持保存和打开绘图文件

  • 支持画布尺寸修改和缩放

  • 支持画布旋转和图形旋转

  • 画直线时按住 Shift 键自带对齐 8 个方向(水平、垂直、45°斜线)

  • 支持全局快捷键 Alt + B 快速进入截图模式(即使不在焦点状态)

  • 支持位图的复制粘贴,ctrl+c复制、ctrl按下时鼠标左键在选择区域按下也可复制,ctrl+v粘贴

安装

Install-Package DrawKit

使用示例

CanvasForm canvasForm = new CanvasForm();

canvasForm.Show();

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 70 8/20/2026

首次发布。