Search code examples
c#winformscontrolsimagemap

WinForms control for image map editing


In a WinForms application, I need to be able to interactively edit "hot" areas on top of an image, later to be used as a sort of image map.

I tried to rig together an UserControl with some floating rectangles (Microsoft.VisualBasic.PowerPacks ftw) on top of a PictureBox, but the result wasn't all that pretty, especially with flickering and refresh problems when the controls are moved.

Does anyone happen to know of an existing control that would help with defining areas on a canvas? I'm thinking that graphics applications, for example, need to deal with floating selections a lot, but I couldn't track down anything of use. Any ideas appreciated.


Solution

  • I have such a control ... with no designer support

    There is one small bug (very intermittent) that I have not yet worked around, but it lies somewhere deep in the BCL. If you would like a copy, drop me a mail (via www.sadeveloper.net), and I will send you a copy on two conditions.

    1. standard immunity from any and all effects, no liability for any damages, incidental or otherwise ....
    2. if you find the bug and fix it, you let me know how

    MaLio