L Lou Mar 18, 2004 #1 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
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
B Bob Powell [MVP] Mar 19, 2004 #2 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
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