GcDocs.Imaging.Skia 8.0.0

dotnet add package GcDocs.Imaging.Skia --version 8.0.0                
NuGet\Install-Package GcDocs.Imaging.Skia -Version 8.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="GcDocs.Imaging.Skia" Version="8.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GcDocs.Imaging.Skia --version 8.0.0                
#r "nuget: GcDocs.Imaging.Skia, 8.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.
// Install GcDocs.Imaging.Skia as a Cake Addin
#addin nuget:?package=GcDocs.Imaging.Skia&version=8.0.0

// Install GcDocs.Imaging.Skia as a Cake Tool
#tool nuget:?package=GcDocs.Imaging.Skia&version=8.0.0                

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 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. 
.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. 
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
8.0.0 81 12/9/2024
7.2.5 87 11/27/2024
7.2.4 95 10/23/2024
7.2.3 103 10/9/2024
7.2.2 110 9/20/2024
7.2.1 116 9/3/2024
7.2.0 131 8/19/2024
7.1.4 93 7/24/2024
7.1.3 89 6/26/2024
7.1.2 109 5/29/2024
7.1.1 123 4/24/2024
7.1.0 117 4/15/2024
7.0.4 120 3/22/2024
7.0.3 118 2/19/2024
7.0.2 133 1/25/2024
7.0.1 162 1/5/2024
7.0.0 160 12/11/2023

# Changes since version 7.2.5:

## Breaking changes
- The 'net461' .NET Framework target changed to 'net462'. (DOC-6551)