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. Visual Basic
  4. Drawing on Images?

Drawing on Images?

Scheduled Pinned Locked Moved Visual Basic
tutorialgraphicshelpquestion
6 Posts 3 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.
  • A Offline
    A Offline
    ashamsa
    wrote on last edited by
    #1

    I am working on a dental software.I need to display all 32 teeth of a selected patient with markings of each treatment he had undergone.I am displaying images of all 32 teeth on the form, without any treatment shown, in 32 picture boxes.If there is a treatment on a particular tooth it should be shown in the picture box with a differnt appearance indicating the treatment he has taken.For example if he has taken a root canal treatment for tooth no.4 then the root portion should be filled with red color.If another treatment is taken on the same tooth then that treatment also should be displayed in the figure along with the previous treatment.My problem is how to go about it.Any programming idea and/or code samples are welcome. Asha

    S C 2 Replies Last reply
    0
    • A ashamsa

      I am working on a dental software.I need to display all 32 teeth of a selected patient with markings of each treatment he had undergone.I am displaying images of all 32 teeth on the form, without any treatment shown, in 32 picture boxes.If there is a treatment on a particular tooth it should be shown in the picture box with a differnt appearance indicating the treatment he has taken.For example if he has taken a root canal treatment for tooth no.4 then the root portion should be filled with red color.If another treatment is taken on the same tooth then that treatment also should be displayed in the figure along with the previous treatment.My problem is how to go about it.Any programming idea and/or code samples are welcome. Asha

      S Offline
      S Offline
      SHatchard
      wrote on last edited by
      #2

      One possible way would be to investigate the Microsoft.Ink namespace. This would allow you to annotate the images (works with a mouse, not just the pen) and this Ink could be serialised into the database. An advantage of this is that the original images are kept intact and the storage space is very low. There are many ways of doing this but as someone familiar with ink applications I would be tempted to do it this way

      A 1 Reply Last reply
      0
      • A ashamsa

        I am working on a dental software.I need to display all 32 teeth of a selected patient with markings of each treatment he had undergone.I am displaying images of all 32 teeth on the form, without any treatment shown, in 32 picture boxes.If there is a treatment on a particular tooth it should be shown in the picture box with a differnt appearance indicating the treatment he has taken.For example if he has taken a root canal treatment for tooth no.4 then the root portion should be filled with red color.If another treatment is taken on the same tooth then that treatment also should be displayed in the figure along with the previous treatment.My problem is how to go about it.Any programming idea and/or code samples are welcome. Asha

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Throw away the picture boxes. your app is becoming complex enough that you should be drawing the teeth in your paint event. Then you can also draw on top of the teeth, where you need to color code things, etc. If I get this right, you need to work out sections of a tooth based on discoloration ? Or can you just draw anywhere/the area is known ?

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        A 1 Reply Last reply
        0
        • C Christian Graus

          Throw away the picture boxes. your app is becoming complex enough that you should be drawing the teeth in your paint event. Then you can also draw on top of the teeth, where you need to color code things, etc. If I get this right, you need to work out sections of a tooth based on discoloration ? Or can you just draw anywhere/the area is known ?

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

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

          Could you please be a little more elaborate on how should i design such an application.I need to work out the sections.How do i draw on the different sections of a prelaoded image.Why did us ay throw away the picture boxex.Right now i m keeping 32 pictureboxes,one for each tooth.Can u give me a solution on how to work on this.I am working in vb.net -- modified at 4:28 Wednesday 27th June, 2007

          1 Reply Last reply
          0
          • S SHatchard

            One possible way would be to investigate the Microsoft.Ink namespace. This would allow you to annotate the images (works with a mouse, not just the pen) and this Ink could be serialised into the database. An advantage of this is that the original images are kept intact and the storage space is very low. There are many ways of doing this but as someone familiar with ink applications I would be tempted to do it this way

            A Offline
            A Offline
            ashamsa
            wrote on last edited by
            #5

            Can u give me sample code or links on this.

            S 1 Reply Last reply
            0
            • A ashamsa

              Can u give me sample code or links on this.

              S Offline
              S Offline
              SHatchard
              wrote on last edited by
              #6

              Here is a nice article http://www.c-sharpcorner.com/UploadFile/mahesh/InkPictureImages11042005153113PM/InkPictureImages.aspx[^] It explains it all, but in C# - I dont know how easy it will be for you to convert but if you have difficulties post back and I will do some conversion for you

              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