Aloe.Utils.Drawing.Wpf 1.0.0

dotnet add package Aloe.Utils.Drawing.Wpf --version 1.0.0
                    
NuGet\Install-Package Aloe.Utils.Drawing.Wpf -Version 1.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="Aloe.Utils.Drawing.Wpf" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aloe.Utils.Drawing.Wpf" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Aloe.Utils.Drawing.Wpf" />
                    
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 Aloe.Utils.Drawing.Wpf --version 1.0.0
                    
#r "nuget: Aloe.Utils.Drawing.Wpf, 1.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.
#addin nuget:?package=Aloe.Utils.Drawing.Wpf&version=1.0.0
                    
Install Aloe.Utils.Drawing.Wpf as a Cake Addin
#tool nuget:?package=Aloe.Utils.Drawing.Wpf&version=1.0.0
                    
Install Aloe.Utils.Drawing.Wpf as a Cake Tool

Aloe.Utils.Drawing.Wpf

Aloe.Utils.Drawing.Wpf is a utility library that makes it easy to convert between icons and image sources in WPF applications. It particularly provides functionality to safely convert icons to ImageSource in a thread-safe manner.

Key Features

  • Conversion from Icon to ImageSource
  • Thread-safe implementation (automatic Freeze functionality)
  • Windows OS-specific optimizations

Supported Environments

  • .NET 9 and later
  • Windows OS

Usage Example

using System.Drawing;
using Aloe.Utils.Drawing.Wpf;

// Convert from Icon to ImageSource
using var icon = new Icon("path/to/icon.ico");
// Automatically frozen
var imageSource = icon.ToImageSource();

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net9.0-windows7.0 is compatible.  net10.0-windows 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.0 132 5/20/2025