TdhMarchingAnts

Select (and draw) a rectangle on the client-area of an attached control
Download

TdhMarchingAnts Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Ilion
  • Publisher web site:
  • http://www.codeproject.com/script/Membership/View.aspx?mid=1311446
  • Operating Systems:
  • Windows All
  • File Size:
  • 209 KB

TdhMarchingAnts Tags


TdhMarchingAnts Description

The TdhMarchingAnts application was developed to be a small test tool that uses a .NET component to select (and draw) a rectangle on the client-area of an attached control and return the co-ordinates.As a minor part of the image processing sub-system of my project, I needed a way to allow users to select an identifying region on the set of images they are working with. This region for each individual image is then to be shown at magnification (as compared to the full/cropped images shown as thumbnails).While my need was very specific -- I wanted to know the co-ordinates of a rectangle selected on the surface of a PictureBox control -- I decided to write a more versatile class which should be able to draw a rectangle on any object which inherits from System.Windows.Forms.Control and return the rectangle co-ordinates to the invoking program.The class I wrote to accomplish this goal is: TdhMarchingAnts_NativeWindow. This class may be used by instantiating it directly via code.I also wrote a component class, TdhMarchingAnts, to act as a development-environment "wrapper" for TdhMarchingAnts_NativeWindow. The demo program uses/tests both classes.


TdhMarchingAnts Related Software