Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, November 23, 2007 2:51:34 AM(UTC)

thymian  
thymian

Groups: Registered
Posts: 8


I got a serious problem, working on it for hours now...

What I want to do:

1. I want to display some information about the patient (name, birthdate, sex, etc.) onto the RasterImageViewer, NOT onto the RasterImage.

2. It is very important that these text objects are FULLY disabled (user cannot select them).

How can I do this?
Please help me on this one, it is very important.
I would be greatful if you provide some sample code.

Thank you very much.

IMPORTANT:
I do NOT want to use the Medical Viewer. I want to create my own solution.

I also provided a screenshot of what our goal is.

Karagiannakis Georgios

-------------------------------------------------
MORE INFO:
1. I am using VB2005 with Leadtools Main v15, currently evaluating. Purchase is planned since we are a company creating medical solutions for hospitals.
2. The RasterImageViewer is Docked (Full) in a child window.
3. Background color of RasterImageViewer is black.
4. The actual DICOM Image has an orange border.

Hope this helps to describe it more precise.
thymian attached the following image(s):
ourgoal.JPG
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, November 24, 2007 11:13:45 PM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)


You can add text to the viewer (not the image) in LEADTOOLS in at least 2 ways:


1) Using our annotations
functions to add the text in objects. These will be in a layer above the image,
so you can show, hide, modify and control them any way you want. You can
completely control whether the user is allowed to modify them or not, for example by controlling the user mode and setting it to Run instead of Design.


 


2) Using GDI graphics to draw
on the control window itself. Since our control is a Windows Forms control, you can get its Graphics object and draw anything you want on it.


 


If you need more information about either of these 2 approaches after checking the help file, please let me know.
 
#3 Posted : Sunday, November 25, 2007 10:02:25 PM(UTC)

thymian  
thymian

Groups: Registered
Posts: 8


The first approach is a little bit difficult to implement. Thats because our application will support annotations. And as far as I can see, theres really no way to fully disable the annotations. Plus, the locket picture is visible and the user can select the annotation. The perfect thing about this approach is that the annotations will resize automatically when the user zooms in/out the picture. I attached a picture for this approach.

NOW the second approach. Seems to be the BEST. But, the annotations (in this case, the simple text) will not resize automatically. Well, in first place it doesnt matter to me.

Can you please post some sample code how I could insert some text objects on the RasterImageViewer or on the Windows Form?
I would appreciate it very much. Thank you for your reply, youre doing a really great work here.
thymian attached the following image(s):
untitled.JPG
 
#4 Posted : Tuesday, November 27, 2007 7:17:46 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)


The basic idea behind it is
that, you have to use function such as DrawLine() in Paint event of the rasterImageViewer
control. The code to drawing a simple line on the control looks something like this:


 


private void rasterImageViewer1_Paint(object sender, PaintEventArgs e)


      {


 e.Graphics.DrawLine(new Pen(System.Drawing.Color.BlueViolet, 9), 10, 10, 400, 300);


      }
 
#5 Posted : Tuesday, November 27, 2007 1:46:30 PM(UTC)

thymian  
thymian

Groups: Registered
Posts: 8


Thank you very much for your help. I will try this out and experiment a lot to achieve my goal.
I will contact you via this thread if i need more guidance in the future.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.074 seconds.