Get image bound
-
Hi, i have to get the bound of a photo. i have a photo of a rectangle, but not always a regular rectangle (it can be sometimes jagged), and the background can be every time different. How can i have automatically the bound of my jagged rectangle? Exits any method to do this? Thanks.
-
Hi, i have to get the bound of a photo. i have a photo of a rectangle, but not always a regular rectangle (it can be sometimes jagged), and the background can be every time different. How can i have automatically the bound of my jagged rectangle? Exits any method to do this? Thanks.
-
Wht have u used to display the Photo? is it a pictureBox? if it is a pictureBox u can try and get the region of this pictureBox. Regards, Pramod
-
yes i use a pictureBox. how can i use the region for my purpose I have to recognize the profile of my rect direct from the photo. do you think that is possible? thanks. nik
If u are using a PictureBox then the picturebox is always in a rectangular form, u can use the Region property of the picturebox which returns an object of the System.Drawing.Region, the u can get the bounds of the Region using the GetBounds method of the region object Hope that works for u Regards, Pramod