Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / July 2005

Tip: Looking for answers? Try searching our database.

create bitmap from pixel array data v2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aykut - 22 Jul 2005 22:39 GMT
Hi
I ve a pixel array data which has following properties:

512X512, grayscale
16bits per pixel is allocated  but 12 bits used for each pixel.
I want to display this as a bitmap.How can I  do this?
morten tried to help about this some topics before.but I m realizing the
unused 4 bits by now.
thanks for help.
Morten Wennevik - 23 Jul 2005 10:22 GMT
Hi Aykut,

I fear you may be out of luck since as far as I know the Format16bppGrayScale mode is broken, and won't be fixed in Framework 2.0 either.  Most likely you will need to convert the data to 8 bit indexed bitmap and fill the palette with grayscale values.

This thread discusses displaying 16bit grayscale using a Windows Bitmap object (GDI, but the GDI+ is closely related).  Although the conversion is from 16 bit to 8 bit, the principles are the same as for 12 -> 8, depending.

http://www.asmail.be/msg0055114987.html

Signature

Happy coding!
Morten Wennevik [C# MVP]


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.