Re: How to display 16bit dicom image



Unfortunately the 16 bit image formats in GDI+ are all broken.

You will have to open the image, read it byte for byte and then write it to
a newly created image, perhaps a GIF in your case.

See the GDI+ FAQ for info on the LockBits method which will be essential and
the GIF palette article which will enable you to create a custom monochrome
palette.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



"Neeraj" <kneeraj01@xxxxxxxxx> wrote in message
news:1147933561.193601.46870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi
I am working on dicom viewer. 8 bit raw dicom image working
properly.But 16 bit Dicom image is not showing.What Should i have to
do.You have any idea about That to convert it in 8bit .
regards
Neeraj



.



Relevant Pages

  • Re: How to display 16bit dicom image
    ... Unfortunately the 16 bit image formats in GDI+ are all broken. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... bit raw dicom image working ... properly.But 16 bit Dicom image is not showing.What Should i have to ...
    (microsoft.public.dotnet.languages.csharp)
  • [SLE] [OT] Re: FYI: OpenSUSE vs Vista
    ... Windows Vista has implemented 0% .NET in the core. ... SIDs to a NTFS filesystem, which _can_ happen on a non-DC file server. ... It's trying to chuck the Graphical Display Interface (GDI) ...
    (SuSE)
  • Re: which way is faster?
    ... I never heard of speed comparisons between dos and windows. ... GDI does not support hardware. ... I provided a demonstration here earlier, where a GDI app, can prempt both the mouse and keyboard messages, and keep going. ...
    (alt.lang.asm)
  • Re: Using Graphics.World when drawing
    ... Conversions to and from pixels are unneccesary. ... See the GDI+ FAQ and Windows Forms Tips and Tricks for some ideas. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Office 2003 "needs to close"
    ... But I should reply to the point on GDI. ... I now also have trouble printing pictures from Windows Photo & Fax viewer. ... Download Platform SDK Redistributable: GDI+ ... Under General Tab clear your History, ...
    (microsoft.public.windowsxp.general)