I have a System.Windows.Media.Drawing
object that I am wanting to convert into a Bitmap
object, and then from there extract the bytes that represent the image. I've looked about the internet and I can't seem to find how to do what I need, so any help would be appreciated.
Converting a System.Windows.Media.Drawing object to Bitmap bytes
738 views Asked by Jake Conkerton-Darby At
2
So I finally found a way to convert a
System.Windows.Media.Drawing
object to aSystem.Drawing.Bitmap
object, and from that get abyte[]
object representing the image data. The following is not pretty but does actually work.So yeah, it's horrible but it actually works.