ApeFree.Cake2D.Skia 1.0.2-beta260905

This is a prerelease version of ApeFree.Cake2D.Skia.
dotnet add package ApeFree.Cake2D.Skia --version 1.0.2-beta260905
                    
NuGet\Install-Package ApeFree.Cake2D.Skia -Version 1.0.2-beta260905
                    
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="ApeFree.Cake2D.Skia" Version="1.0.2-beta260905" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ApeFree.Cake2D.Skia" Version="1.0.2-beta260905" />
                    
Directory.Packages.props
<PackageReference Include="ApeFree.Cake2D.Skia" />
                    
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 ApeFree.Cake2D.Skia --version 1.0.2-beta260905
                    
#r "nuget: ApeFree.Cake2D.Skia, 1.0.2-beta260905"
                    
#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 ApeFree.Cake2D.Skia@1.0.2-beta260905
                    
#: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=ApeFree.Cake2D.Skia&version=1.0.2-beta260905&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ApeFree.Cake2D.Skia&version=1.0.2-beta260905&prerelease
                    
Install as a Cake Tool

ApeFree.Cake2D.Skia

NuGet License

ApeFree.Cake2D.Skia 是 ApeFree.Cake2D 平面绘图框架基于 Google Skia (SkiaSharp) 高性能 2D 矢量渲染引擎的实现库。具备更强的图形抗锯齿渲染品质、GPU 硬件加速与跨平台能力。


🌟 核心特性

  • ⚡ 高性能 SkiaSharp 渲染:支持亚像素抗锯齿、渐变填充、高精度路径剪裁以及硬件加速渲染。
  • 🎛 WinForms 适配控件:提供 Cake2DSkiaControl 与 Cake2DSkiaBox,无缝嵌入 WinForms 桌面程序。
  • 🌐 高帧率与流畅缩放:面对复杂大型矢量图元时仍能保持极高的缩放与漫游帧率。

📦 安装

dotnet add package ApeFree.Cake2D.Skia

🚀 快速上手

using ApeFree.Cake2D.Skia.Controls;
using ApeFree.Cake2D.Elements.Primitives;
using System.Drawing;

// 1. 初始化 Skia 绘图控件
var skiaControl = new Cake2DSkiaControl { Dock = DockStyle.Fill };
this.Controls.Add(skiaControl);

// 2. 添加多边形
var polygon = new PolygonElement
{
    Points = new[] { new PointF(100, 50), new PointF(150, 150), new PointF(50, 150) },
    FillColor = Color.FromArgb(180, Color.Coral),
    StrokeColor = Color.DarkRed,
    StrokeWidth = 2
};

skiaControl.Canvas.Elements.Add(polygon);
skiaControl.Invalidate();

📄 开源许可证

本项目基于 Apache-2.0 协议开源。

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2-beta260905 80 9/4/2026
1.0.0-beta260901 72 9/1/2026