GcDocs.Imaging.Skia
9.2.2
dotnet add package GcDocs.Imaging.Skia --version 9.2.2
NuGet\Install-Package GcDocs.Imaging.Skia -Version 9.2.2
<PackageReference Include="GcDocs.Imaging.Skia" Version="9.2.2" />
<PackageVersion Include="GcDocs.Imaging.Skia" Version="9.2.2" />
<PackageReference Include="GcDocs.Imaging.Skia" />
paket add GcDocs.Imaging.Skia --version 9.2.2
#r "nuget: GcDocs.Imaging.Skia, 9.2.2"
#:package GcDocs.Imaging.Skia@9.2.2
#addin nuget:?package=GcDocs.Imaging.Skia&version=9.2.2
#tool nuget:?package=GcDocs.Imaging.Skia&version=9.2.2
GcDocs.Imaging.Skia
这个库是一个跨平台的渲染引擎,用于绘制文本和图形。它基于 SkiaSharp,并提供了与 GcImaging 类似且可互操作的对象模型。
这个库的主要类包括 GcSkiaBitmap、GcSkiaImage 和 GcSkiaGraphics,可以替代 GcImaging 中的相应类。
GcSkiaBitmap 表示内存中的位图。它类似于 GcBitmap,但内部封装了 SkiaSharp 的 SKBitmap 对象实例。GcSkiaBitmap 可以加载和保存 JPEG、PNG 和 WEBP 格式的图像。GcSkiaBitmap 可以转换为 GcBitmap 或 GcSkiaImage,反之亦然。要在 GcSkiaBitmap 上进行绘制,调用 CreateGraphics() 方法返回一个关联的 GcSkiaGraphics 实例,用于绘制操作。
GcSkiaImage 表示基于 SKImage 的不可变图像。它是 GcSkiaBitmap 的轻量级版本,不支持修改。GcSkiaImage 可以加载和保存与 GcSkiaBitmap 相同的格式。它也可以转换为 GcBitmap 或 GcSkiaBitmap。GcSkiaImage 和 GcSkiaBitmap 都实现了 IImage 接口,因此可以呈现在任何派生自 GcGraphics 的类的实例上。
GcSkiaGraphics 是从 GcGraphics 派生的绘制类。可以直接创建 GcSkiaGraphics 实例,也可以从 GcSkiaBitmap 创建。如果 GcSkiaGraphics 实例是从 GcSkiaBitmap 创建的,在所有绘制完成后可以进行释放。如果 GcSkiaGraphics 实例是直接创建的,可以调用 ToSkiaImage() 或 ToGcBitmap() 方法获取当前绘制的快照。
如果要在多个 GcSkiaGraphics 实例上绘制文本,请确保创建一个共享的 SkiaFontCache 对象,并将其分配给所有实例的 FontCache 属性。
这个库兼容 .NET 7、.NET 6、.NET Core 3.1、.NET Standard 2.x、.NET Framework 4.6.1 或更高版本。
所有功能在 Windows、macOS 和 Linux 上得到全面支持。
GcDocs 服务端组件
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- GcDocs.Imaging (= 9.2.2)
- SkiaSharp (>= 2.88.9)
- SkiaSharp.NativeAssets.Linux (>= 2.88.9)
-
.NETStandard 2.0
- GcDocs.Imaging (= 9.2.2)
- SkiaSharp (>= 2.88.9)
- SkiaSharp.NativeAssets.Linux (>= 2.88.9)
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 |
|---|---|---|
| 9.2.2 | 134 | 10/14/2026 |
| 9.2.1 | 131 | 9/17/2026 |
| 9.2.0 | 144 | 9/8/2026 |
| 9.1.4 | 218 | 8/10/2026 |
| 9.1.3 | 147 | 7/15/2026 |
| 9.1.2 | 158 | 6/26/2026 |
| 9.1.1 | 146 | 6/5/2026 |
| 9.1.0 | 140 | 5/4/2026 |
| 9.0.4 | 158 | 4/9/2026 |
| 9.0.3 | 162 | 3/4/2026 |
| 9.0.2 | 154 | 2/10/2026 |
| 9.0.1 | 169 | 1/27/2026 |
| 8.2.3 | 538 | 12/9/2025 |
| 8.2.2 | 499 | 11/19/2025 |
| 8.2.1 | 286 | 10/12/2025 |
| 8.2.0 | 250 | 8/17/2025 |
| 8.1.5 | 339 | 8/7/2025 |
| 8.1.4 | 272 | 6/24/2025 |
| 8.1.3 | 402 | 6/10/2025 |
| 7.2.6 | 271 | 8/14/2025 |
# Changes since version 9.2.1:
## Changed
- Updated the Japanese translations of messages. (DOC-7978)
- The SBOM included in the package is now more complete and accurate. (DOC-7984, DOC-8098)