WIC.DotNet
2.0.0
dotnet add package WIC.DotNet --version 2.0.0
NuGet\Install-Package WIC.DotNet -Version 2.0.0
<PackageReference Include="WIC.DotNet" Version="2.0.0" />
paket add WIC.DotNet --version 2.0.0
#r "nuget: WIC.DotNet, 2.0.0"
// Install WIC.DotNet as a Cake Addin #addin nuget:?package=WIC.DotNet&version=2.0.0 // Install WIC.DotNet as a Cake Tool #tool nuget:?package=WIC.DotNet&version=2.0.0
WIC for .NET
A .NET library that makes the Windows Imaging Component (WIC) available to managed code. The library provides a thin layer of abstractions and extension methods to make it easier to work with the raw WIC interface.
Version 1.x of the library targets .NET Standard 2.0, so it can be used in .NET Framework and UWP (.NET Native) apps. Version 2.x targets .NET 8.0 and can be used in trimming and Native AOT scenarios.
What is the Windows Imaging Component (WIC)?
"The Windows Imaging Component (WIC) is a Component Object Model based imaging codec framework introduced in Windows Vista (…) for working with and processing digital images and image metadata." — from the Wikipedia article
Windows Imaging Component allows you to accomplish tasks such as:
- decoding and encoding bitmap images or single bitmap image frames in various formats (GIF, ICO, JPEG, PNG, TIFF, and more)
- reading and writing image metadata
- converting bitmaps to different pixel formats (bit depth, channels)
- transforming bitmaps (clip, flip horizontally or vertically, rotate by 90° angles, scale)
How do you get started?
Familiarize yourself with the WIC, if you don't know it yet. See e.g. the Windows Imaging Component documentation on MSDN.
Add the NuGet package
WIC.DotNet
to your project.In your code, start by instantiating a
WICImagingFactory
object. For Version 1.x use:new WICImagingFactory()
For Version 2.x use:WICImagingFactory.Create()
Most other WIC components can be created directly or indirectly through this factory object.
Is there any example code?
You can find some samples on GitHub in the Samples directory and you can also refer to the the WIC samples on MSDN.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. |
-
net8.0-windows7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on WIC.DotNet:
Package | Downloads |
---|---|
MetadataAPI
Bitmap Metadata API for .NET using the Windows Imaging Component (WIC) |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 111 | 10/4/2024 |
2.0.0-beta1 | 89 | 9/26/2024 |
1.3.2 | 129 | 9/26/2024 |
1.3.1 | 387 | 8/6/2023 |
1.3.0 | 170 | 7/6/2023 |
1.2.0 | 790 | 11/1/2021 |
1.1.1 | 1,512 | 8/14/2020 |
1.0.0 | 457 | 4/15/2020 |
1.0.0-beta.3 | 339 | 2/17/2020 |
1.0.0-beta.2 | 285 | 2/14/2020 |
1.0.0-beta | 324 | 2/14/2020 |