Requires NuGet 2.8.6 or higher.
Install-Package Microsoft.Graphics.Win2D -Version 184.108.40.206
dotnet add package Microsoft.Graphics.Win2D --version 220.127.116.11
<PackageReference Include="Microsoft.Graphics.Win2D" Version="18.104.22.168" />
paket add Microsoft.Graphics.Win2D --version 22.214.171.124
#r "nuget: Microsoft.Graphics.Win2D, 126.96.36.199"
// Install Microsoft.Graphics.Win2D as a Cake Addin #addin nuget:?package=Microsoft.Graphics.Win2D&version=188.8.131.52 // Install Microsoft.Graphics.Win2D as a Cake Tool #tool nuget:?package=Microsoft.Graphics.Win2D&version=184.108.40.206
An easy-to-use Windows Runtime API for immediate mode 2D graphics rendering.
|.NET||net5.0 net5.0-windows net5.0-windows10.0.18362 net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows|
|.NET Core||netcoreapp3.0 netcoreapp3.1|
|.NET Framework||net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48|
|Universal Windows Platform||uap uap10.0|
- Microsoft.WindowsAppSDK (>= 1.0.3)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Microsoft.Graphics.Win2D:
Build .NET MAUI applications with Blazor web UI in the BlazorWebView control.
.NET MAUI NuGet dependencies pack
Microsoft.Maui.Graphics for WinUI powered by Win2D
This library provides controls backed by win2d for use in XAML. It is a part of the Windows Community Toolkit. Controls: - Eyedropper: Eyedropper allows user to pick up a color from anywhere in there application. - ImageCropper: ImageCropper control allows user to crop image freely. - InfiniteCanvas: Supports Infinite Scrolling, Ink, Text, Format Text, Zoom in/out, Redo, Undo, Export & Import.
This library provides UI effects which rely on Win2D. It is a part of the Windows Community Toolkit. AttachedCardShadow: Provides an easy-to-use, simple, and performant rounded-rectangle shadow effect. Effects: - AcrylicEffect: A custom acrylic effect that can be inserted into a pipeline. - BackdropEffect: A backdrop effect that can sample from a specified source. - BlendEffect: A blend effect that merges the current pipeline with an input one. - BlurEffect: A gaussian blur effect. - ImageEffect: An effect which displays an image loaded as a Win2D surface. - ShadeEffect: An effect that overlays a color layer over the current pipeline, with a specified intensity. - SolidColorEffect: An effect that renders a standard 8bit SDR color on the available surface. - TileEffect: An effect that loads an image and replicates it to cover all the available surface area. - ExposureEffect, GrayscaleEffect, HueRotationEffect and more, mapping to Win2D effects. Geometry: - CanvasPathGeometry: A class that parses Win2d Path Mini Language and converts it to CanvasGeometry, CanvasBrush, CanvasStroke, CanvasStrokeStyle or Color. Helpers: - SurfaceLoader: A class that can load and draw images and other objects to Win2D surfaces and brushes. Media: - AcrylicBrush: A custom Brush that that implements an acrylic effect with full control over all parameters. - BackdropBlurBrush: The BackdropBlurBrush is a Brush that blurs whatever is behind it in the application. - BackdropGammaTransferBrush: A brush which alters the colors of whatever is behind it in the application by applying a per-channel gamma transfer function. - BackdropInvertBrush: The BackdropInvertBrush is a Brush which inverts whatever is behind it in the application. - BackdropSaturationBrush: Brush which applies a SaturationEffect to the Backdrop. - BackdropSepiaBrush: Brush which applies a SepiaEffect to the Backdrop. - CanvasBrushBase: Helper Brush class to interop with Win2D Canvas calls. - ImageBlendBrush: A Brush which blends a BitmapImage to the Backdrop in a given mode. - PipelineBrush: A Brush that renders a customizable Composition/Win2D effects pipeline - RadialGradientBrush: This GradientBrush defines its Gradient as an interpolation within an Ellipse. - TilesBrush: A Brush that displays a tiled image, wrapping at the edges and endlessly repeating. PipelineBuilder: A class that allows to build custom effects pipelines and create CompositionBrush instances from them.
GitHub repositories (25)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Graphics.Win2D:
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
Comet is an MVU UIToolkit written in C#
.NET 6 reference application shown at .NET Conf 2021 featuring ASP.NET Core, Blazor, .NET MAUI, Microservices, and more!