kengboon / BBox.Wpf

Movable, resizable bounding box WPF control on image canvas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BBox.Wpf

Movable, resizable bounding box WPF control on image canvas.

Use cases

  • Object annotations
  • Image editors
  • ROI markers
  • and more...

Features

Draggable & resizable control

  • Moveable & resizable (Optional based on use case)
  • Auto update size and position relative to image source (not misaligned on different window size)
  • Draw bbox on canvas (by cursor)

Demo program

Demo program

How to use

  1. Get the BBox.Wpf project from release page or development branch.
  2. Feel free to modify based on your needs - see license. 👌
  3. Build the project. (Note: The source is targeting .NET Framework 4.7.2, but you should be able to build with any compatible framework version >=4.x)
  4. At your WPF project, add reference to the built DLL.
  5. At your XAML, add namespace xmlns:bbox="clr-namespace:BBox.Wpf.Controls;assembly=BBox.Wpf" to use controls.

If this is useful

About

Movable, resizable bounding box WPF control on image canvas.

License:MIT License


Languages

Language:C# 100.0%