How to use Print SCP to save images as Bitmap?

125 views
Skip to first unread message

Fellipe Pinheiro

unread,
Feb 21, 2017, 8:29:27 AM2/21/17
to Fellow Oak DICOM
Hello,
I'm studying the examples provided at "https://github.com/fo-dicom/fo-dicom-samples".
I want to use Print SCP to receive the DICOM prints and save the image as a Bitmap and not send it to the printer.
I could not find in the code a way to get a Bitmap object.
I discovered that the images are in the FilmBox object, but I could not extract the Bitmap from this object.

Does anyone know how to save a bitmap instead of printing?
Does anyone know how to extract the Bitmap from the FilmBox object?

Adil Tiadi

unread,
Feb 21, 2017, 9:18:19 AM2/21/17
to Fellow Oak DICOM
Hi,

Why don't you use "PDFCreator" instead of "Microsoft XPS Document Writer" as printer?
If you configure PDFCreator with automatic save with the format that you want, then you have nothing to change on the sample code (only the print name in PrintJob.cs).

But if you want to change the code to generate yourself your images, maybe I could help you...

Best regards.

Adil

Anders Gustafsson Cureos AB

unread,
Feb 22, 2017, 3:16:16 AM2/22/17
to Fellow Oak DICOM
Hi Fellipe,

When you are using fo-dicom on .NET Framework, there are extension methods to draw film boxes and image boxes, respectively, onto a System.Drawing.Graphics object. Please have a look at the FilmBoxExtensions and ImageBoxExtensions classes for more information.

Regards,
Anders @ Cureos

Fellipe Pinheiro

unread,
Feb 23, 2017, 9:20:48 AM2/23/17
to Fellow Oak DICOM
Hello,
I was able to save as images as BitMap.

Reply all
Reply to author
Forward
0 new messages