Tuesday, September 07, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: dazarz
New Today New Today: 9
New Yesterday New Yesterday: 20
User Count Overall: 10693

People Online People Online:
Visitors Visitors: 13
Members Members: 0
Total Total: 13

Online Now Online Now:

ClearCanvas Community Forums

draw non-DICOM images on a plain view
Last Post 2010-08-11 12:32 PM by Shohei. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Shohei
New Member
New Member
Posts:2

--
2010-07-30 07:34 AM  

Hi all,

I would like to display non-DICOM images, however it needs the following requirements:

  • Create a blank ImageBox.
  • Create a image(ColorImageGraphic or Bitmap)
  • Display the image on the ImageBox.

Put simply, I would like to make a plugin that can draw somthing on a plain view.

I created a blank ImageBox, then I tried some ways(e.g. make a image->add it to DisplaySet->Draw), but it didin't work well.

I referred to Developer's Guide, but I'm new in C Sharp and my English language skill is bad, so I couldn't find out.

Could anyone help me?

 

Many thanks,

Shohei

stewart
Senior Member
Senior Member
Posts:1425

--
2010-08-09 02:34 PM  
If you're working within the CC application, this should be easy enough to do. You can't just create an ImageBox, though, you need to start with an ImageViewerComponent. Try this:

1. Create an ImageViewerComponent, set it's PhysicalWorkspace layout to 1x1.
2. Create an empty DisplaySet.
3. Create a ColorImageGraphic from your Bitmap.
4. Create a BasicPresentationImage, giving it the image graphic.
5. Add the presentation image to the display set.
6. Assign the display set to the ImageBox in the viewer.
7. Launch the viewer in a workspace. Look at ImageViewerComponent.Launch to see how, but don't use this method because it calls Layout(), which you probably don't want to do.

Hope this helps,
Stewart
Shohei
New Member
New Member
Posts:2

--
2010-08-11 12:32 PM  

Hi Stewart,

Thank you for helping! I'm going to try it.

Many thanks,

Shohei

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2010 ClearCanvas Inc.