471,350 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Selecting a region in a picturebox

Hi,

I want to crop a picture in a picturebox by allowing the user to select
a rectangular region like you get in software like Photoshop.

Is there any prefabricated solution to creating such a selection window,
or will I have to code it myself?
Thanks

Andrew
Feb 15 '06 #1
1 5521
Andrew,

There is nothing out of the box that will do this. Rather, you should
create a control which will do this for you, and handle the mouse button
down, mouse button up, etc, etc events, drawing your rectangle in the
process.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andrew Bullock" <an*********************@ANDntlworldTHIS.com> wrote in
message news:uQ*******************@newsfe2-gui.ntli.net...
Hi,

I want to crop a picture in a picturebox by allowing the user to select a
rectangular region like you get in software like Photoshop.

Is there any prefabricated solution to creating such a selection window,
or will I have to code it myself?
Thanks

Andrew

Feb 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by webhigh | last post: by
1 post views Thread by Bob Loveshade | last post: by
4 posts views Thread by Dino M. Buljubasic | last post: by
1 post views Thread by M West | last post: by
5 posts views Thread by Fao, Sean | last post: by
3 posts views Thread by Sagaert Johan | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.