Click here to Skip to main content
15,884,237 members
Articles / Programming Languages / C#
Article

Drawing trackers And Getting the Selections in your PictureBox.

Rate me:
Please Sign up or sign in to vote.
3.46/5 (7 votes)
19 Apr 2005 46.9K   2.6K   23   9
This is a class to help you handle the selections in the PictureBox.

Sample Image - MotoVB_Steven_Jian_.jpg

Introduction

In VC++, we have a class CRectTracker which helps to draw the trackers and also there is function a DrawFocusRect() with which tracker behavior can be achieved. In C#, I did not find any kind of such functionality (if there is, then I am unaware at the moment.). So I decided to make program which draws box with tracker and allows manipulation with the box with the help of trackers. This is a class to help you handle the selections in the PictureBox.

Reference

Drawing trackers, moving and resizing the objects using double buffering.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Taiwan Taiwan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 5 Pin
Manoj Kumar Choubey28-Apr-13 0:13
professionalManoj Kumar Choubey28-Apr-13 0:13 
Questionget index of selected rectanle Pin
dakshikaJ14-May-12 22:01
dakshikaJ14-May-12 22:01 
GeneralpictureBox sizeMode Pin
ilintx17-Aug-09 7:39
ilintx17-Aug-09 7:39 
GeneralRe: pictureBox sizeMode Pin
Job V8-Sep-09 0:06
Job V8-Sep-09 0:06 
GeneralRe: pictureBox sizeMode Pin
ilintx8-Sep-09 8:53
ilintx8-Sep-09 8:53 
QuestionHow do I get info on selected section Pin
buyValu26-Aug-08 10:03
buyValu26-Aug-08 10:03 
OK... I can draw the rectangle on the image but how do I get the image data contained within the rectangle?
Generalthe Class ControlPain Pin
Benoit Morneau29-Apr-05 5:20
Benoit Morneau29-Apr-05 5:20 
QuestionDo I know you? Pin
Joel Holdsworth19-Apr-05 9:26
Joel Holdsworth19-Apr-05 9:26 
AnswerRe: Do I know you? Pin
virdust200320-Apr-05 16:25
virdust200320-Apr-05 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.