Bitmap header information

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

How can I get a bitmap file header and header file info, Is there a
namespace for this
or is it simply file parsing?

-Lou
 
Firstly, why do you want it? The GDI+ decoders will read most any image file
and you can get information after you've read it.

If you really need the headers you can re-create the header structures as C#
structs and read a bitmap file into them using the BinaryReader class.

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

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

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

Read my Blog at http://bobpowelldotnet.blogspot.com
 
Back
Top