Skip to content

About

Imagine processing and related utilities

Resources

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

191 Commits

Folders and files

Repository files navigation

CDS.ImageDisplay

CI CodeQL OpenSSF Scorecard NuGet License

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.

Requirements

  • .NET 10, Windows
  • Windows Forms

Installation

dotnet add package CDS.ImageDisplay.WinForms

Quick start

// 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

Features

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

Solution layout

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

Building

dotnet build
dotnet test
dotnet pack CDS.ImageDisplay.WinForms

Versioning is handled by MinVer using a V tag prefix (e.g. V2.2.0).

License

MIT

About

Imagine processing and related utilities

Resources

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages