PeachDrawing.CoreGraphics
0.9.26
dotnet add package PeachDrawing.CoreGraphics --version 0.9.26
NuGet\Install-Package PeachDrawing.CoreGraphics -Version 0.9.26
<PackageReference Include="PeachDrawing.CoreGraphics" Version="0.9.26" />
<PackageVersion Include="PeachDrawing.CoreGraphics" Version="0.9.26" />
<PackageReference Include="PeachDrawing.CoreGraphics" />
paket add PeachDrawing.CoreGraphics --version 0.9.26
#r "nuget: PeachDrawing.CoreGraphics, 0.9.26"
#:package PeachDrawing.CoreGraphics@0.9.26
#addin nuget:?package=PeachDrawing.CoreGraphics&version=0.9.26
#tool nuget:?package=PeachDrawing.CoreGraphics&version=0.9.26
PeachDrawing.CoreGraphics
A CoreGraphics Canvas for PeachDrawing.Core on macOS and iOS: draw shapes, gradients, clips, layers, text and images with Apple's Quartz 2D, with no PDF, HTML or CSS involved. Layer effects (blur, drop shadow, colour matrices) and conic gradients run through Core Image on a Metal device when there is one.
You supply the context. The package never creates a window, a view or a layer: it draws into a CGContext you already have - a view's, a layer's, a bitmap's - and borrows it, restoring its graphics state when the canvas is disposed.
using PeachDrawing.Core;
using PeachDrawing.CoreGraphics;
using var context = new CoreGraphicsRenderContext();
// Inside your view's draw handler, with the CGContext it gives you:
using var canvas = CoreGraphicsCanvas.FromContext(context, cgContext, new Rect(0, 0, 400, 300));
using var brush = canvas.GetSolidBrush(PaintColor.FromArgb(255, 220, 90, 40));
canvas.DrawRectangle(brush, 20, 20, 360, 260);
Text is shaped by the shared PeachDrawing.Text engine by default, or by CoreText with CoreGraphicsTextEngine.Native; images are decoded by PeachImage by default, or by ImageIO with CoreGraphicsImageCodec.Native / Auto. See the guide for the details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.0 is compatible. net10.0-macos26.0 is compatible. |
-
net10.0-ios26.0
- PeachDrawing (>= 0.9.26)
- PeachDrawing.Core (>= 0.9.26)
- PeachImage (>= 0.7.3)
-
net10.0-macos26.0
- PeachDrawing (>= 0.9.26)
- PeachDrawing.Core (>= 0.9.26)
- PeachImage (>= 0.7.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PeachDrawing.CoreGraphics:
| Package | Downloads |
|---|---|
|
PeachBrackets.Apple
A macOS (AppKit) and iOS (UIKit) view that shows an HTML document laid out by PeachBrackets: GPU-composited scrolling and zoom, mouse, trackpad, touch and pointer input, links, text selection and copy, and the CSS cursor, hover and touch-action behaviour the document asks for. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.26 | 39 | 11/6/2026 |