Is there any sane way to work with bitmaps in WPF? I'd like similar functionality as System.Drawing.Bitmap
: be able to load image from file and get and set the color of particular pixels.
I know about WriteableBitmap
, but I don't want to work with Array
s of gods-know-what (I couldn't find that on MSDN), or pointers. I just want to read or write pixel, it shouldn't be that hard!
I also know that I can use Interop to work with System.Drawing.Bitmap
in WPF, but that's not nice either.