Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get image bound

Get image bound

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cliffer
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • C Cliffer

      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.

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      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

      C 1 Reply Last reply
      0
      • A AB7771

        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

        C Offline
        C Offline
        Cliffer
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • C Cliffer

          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

          A Offline
          A Offline
          AB7771
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups