A Windows Forms library for displaying, zooming, panning, and annotating bitmaps. Designed for imaging and machine-vision applications where you need a responsive, thread-safe image viewer with overlay graphics and interactive region-of-interest selection.
- .NET 10, Windows
- Windows Forms
dotnet add package CDS.ImageDisplay.WinForms
// Drop BitmapDisplayPanel onto a form (designer or code), then:
bitmapDisplayPanel.DisplayMode = BitmapDisplayMode.FitToWindowCentred;
using var bitmap = new Bitmap("photo.jpg");
bitmapDisplayPanel.SetImage(bitmap); // safe to call from any thread| Area | Summary |
|---|---|
| Display | Zoom/pan, display modes, thread-safe updates, coordinate mapping, overlay scale factor, greyscale palette modes, custom image sources, paint hooks |
| Overlays | Static shapes (RectangleShape, CircleShape, EllipseShape, DonutShape, LineShape, …), DrawingSpec, TextPanelStd |
| Annotations | Interactive freehand annotation, shape recognition, serialization, custom shapes |
| Regions of interest | SingleROIManager, MultipleROIManager, line selection |
| Image browsing | ImageListPanel — virtualised thumbnail list, LRU cache, debounced loading, per-item status indicators |
| Project | Role |
|---|---|
CDS.ImageDisplay.WinForms |
Library — the NuGet deliverable |
UnitTests |
MSTest + AwesomeAssertions unit tests |
BenchmarkTests |
BenchmarkDotNet benchmarks (Release config) |
CDS.ImageDisplay.Demo |
WinForms demo app |
dotnet build
dotnet test
dotnet pack CDS.ImageDisplay.WinForms
Versioning is handled by MinVer using a V tag prefix (e.g. V2.2.0).