Drawing on Images?
-
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
-
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
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
-
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
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 )
-
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 )
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
-
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
-
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