Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 2.05 KB

README.md

File metadata and controls

40 lines (25 loc) · 2.05 KB

WIC-DotNet

A .NET Standard library that makes the Windows Imaging Component (WIC) available to managed code so that it can be used in .NET Core, .NET Framework and UWP (.NET Native). The library provides a thin layer of abstractions and extension methods to make it easier to work with the raw WIC interface.

Get it from NuGet

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?

  1. Familiarize yourself with the WIC, if you don't know it yet. See e.g. the Windows Imaging Component documentation on MSDN.

  2. Add the NuGet package WIC-DotNet to your project. Alternatively, you can compile this project yourself (you will need Visual Studio 2017 for this), and then add a reference to the built WIC.dll assembly to your project.

  3. In your code, start by instantiating a WICImagingFactory object. Most other WIC components can be created directly or indirectly through this factory object.

Is there any example code?

You can find some samples in the Samples directory and you can also refer to the the WIC samples on MSDN.