Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Hey thanks for that advice, I haven't thought about that - it is indeed ovbious now as you explained it, but my experience with bitmap and encoding/decoding-schemes is two days young. Never worked with that before. Can you give me an advice or a code example how to get the raw data of the bitmap? In the end, I want to see and manipulate the hex data (as string). Commented Jul 13, 2015 at 8:38
  • @EmanuelLeicht At some point, you're reading the data from a file - just read the file directly into a byte array (e.g. use File.ReadAllBytes). You can then use that same byte array to construct the bitmap as well (using MemoryStream on top of the byte array, for example). Commented Jul 13, 2015 at 9:38