How to look at Bitmap objects in Visual Studio debugger?

This program works for me in 2013 and should work from 2010 - 15 http://bytescout.com/products/developer/bitmapvisualizer/index.html


I did it this way before I read Rachel's comment above which would have been much easier....

You could Base64 encode it - in your immediate Window:

System.IO.MemoryStream stream = new System.IO.MemoryStream();
yourImage.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);
byte[] bytes = stream.ToArray();
base64string = System.Convert.ToBase64String(bytes);

Then copy and paste the value of base64string into your favourite base64 debugger, e.g.

https://codebeautify.org/base64-to-image-converter


Another open source image and bitmap visualizer which works in Visual Studio 2019:

https://github.com/Jaex/ImageVisualizer

Screenshot from it:


There is no debugger visualizer by default for Bitmap, so you might want to give this one a try: http://imagedebugvisualizer.codeplex.com/