Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: tchlee
New Today New Today: 16
New Yesterday New Yesterday: 26
User Count Overall: 20579

People Online People Online:
Visitors Visitors: 10
Members Members: 1
Total Total: 11

Online Now Online Now:
01: okdicom

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:2032

--
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
Real-time support available to Clinical Edition and Team Edition customers
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 2011 ClearCanvas Inc.