This project is read-only.

Convolute / Invert changes WriteableBitmap DPI

Sep 4, 2013 at 10:36 PM
Pretty simple problem here...

I have a 72 DPI WriteableBitmap image. If I run a convolute call or invert the image what is returned is always a 96 DPI image. I need it to stay a 72 DPI image.

Is there a way around this? Or to change the image back to 72 DPI after the image processing?
Sep 6, 2013 at 12:18 PM
Sounds like WPF.

Yes, you can convert after the operation. See the BitmapFactory class in the source code to get an idea how that works with the FormatConvertedBitmap class.
You can also compile your own WBX and modify BitmapFactory to use 72 DPI to omit that extra convert step. The power of open source. ;)
  • Rene