Hawkynt.ImageTransformUI 1.0.0.11

dotnet add package Hawkynt.ImageTransformUI --version 1.0.0.11
                    
NuGet\Install-Package Hawkynt.ImageTransformUI -Version 1.0.0.11
                    
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="Hawkynt.ImageTransformUI" Version="1.0.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hawkynt.ImageTransformUI" Version="1.0.0.11" />
                    
Directory.Packages.props
<PackageReference Include="Hawkynt.ImageTransformUI" />
                    
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 Hawkynt.ImageTransformUI --version 1.0.0.11
                    
#r "nuget: Hawkynt.ImageTransformUI, 1.0.0.11"
                    
#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.
#:package Hawkynt.ImageTransformUI@1.0.0.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hawkynt.ImageTransformUI&version=1.0.0.11
                    
Install as a Cake Addin
#tool nuget:?package=Hawkynt.ImageTransformUI&version=1.0.0.11
                    
Install as a Cake Tool

Hawkynt.ImageTransformUI

NuGet CI License Targets

Shared WinForms image-transformation UI for interactive color reduction, with live preview and registry-driven quantizer/ditherer selection.

πŸ“¦ Installation

dotnet add package Hawkynt.ImageTransformUI

The package targets net48, net8.0-windows, and net10.0-windows and requires WinForms.

✨ Features

  • ReduceColorsWindow modal color-reduction dialog.
  • Registry-backed choice of 40+ quantizers and 120+ ditherers from FrameworkExtensions.System.Drawing.
  • Palette-size control from 2 to 256 colors.
  • Debounced asynchronous live preview with cancellation.
  • ForcePaletteSize(int) for formats that require a fixed palette cardinality.
  • Shared text-mode/font picker support through FileFormat.TextMode.

🧩 Capability support

Capability Support Notes
WinForms UI βœ… Native Windows Forms dialog/window implementation.
Live preview βœ… Async/debounced rendering with cancellation.
Quantizer discovery βœ… Uses the FrameworkExtensions quantizer registry.
Ditherer discovery βœ… Uses the FrameworkExtensions ditherer registry.
Palette-size selection βœ… 2–256 colors.
Fixed palette size βœ… ForcePaletteSize(int) constrains formats such as monochrome targets.
Cross-platform UI β€” This is intentionally a WinForms/Windows package.

Quantizer and ditherer names are not duplicated into a static documentation list because their registries are the authoritative source and can grow independently.

πŸš€ Quick start

using Hawkynt.ImageTransformUI;

using var dialog = new ReduceColorsWindow(sourceBitmap);

// Optional for formats with a fixed palette size.
// dialog.ForcePaletteSize(2);

if (dialog.ShowDialog() == DialogResult.OK) {
  var quantizer = dialog.PickedQuantizerName;
  var ditherer = dialog.PickedDithererName;
  var paletteSize = dialog.PaletteSize;

  // Apply the selected transformation in the caller's image pipeline.
}

πŸ“š API

Member Purpose
ReduceColorsWindow(Bitmap) Create the color-reduction dialog for a source bitmap.
ForcePaletteSize(int) Lock the palette-size choice to a format-required value.
PickedQuantizerName Registry name selected by the user.
PickedDithererName Registry name selected by the user.
PaletteSize Selected palette cardinality.

πŸ—οΈ Architecture

The package deliberately owns UI, not color science. Quantizers, ditherers, and their registry metadata come from FrameworkExtensions.System.Drawing; this package renders those choices, previews the result, and returns the selected configuration to the caller.

That keeps format projects and optimizers from each growing their own slightly different β€œreduce colors” dialog.

πŸ“š API reference

Every public and protected member of all 4 types, generated from the built assembly and its XML documentation, is in REFERENCE.md.

πŸ”Œ Dependencies

Dependency Role Reference
FrameworkExtensions.System.Drawing Quantizer/ditherer registries and image-processing implementations. NuGet
System.Drawing.Common Bitmap/GDI+ operations. Microsoft documentation
WinForms Native Windows UI framework. Microsoft WinForms
FileFormat.TextMode Font/codepage preview infrastructure used by text-mode pickers. Repository project

⚠️ Limitations

  • Windows-only by design because it is a WinForms package.
  • Quantizer/ditherer availability follows the referenced FrameworkExtensions version; names should be treated as registry identifiers, not a frozen list owned by this package.
  • The dialog returns the selected transformation parameters; the surrounding application remains responsible for file-format constraints and persistence.

❀️ Support

If this project saves you time or money, consider supporting its development:

GitHub Sponsors PayPal

πŸ“œ License

Licensed under LGPL-3.0-or-later β€” see the repository LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 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.11 105 11/6/2026
1.0.0.8 164 7/29/2026
1.0.0.7 155 6/4/2026