I am using following for capturing signature on my application
https://github.com/Cheesebaron/MonoDroid.CaptureSignature
Its working fine if i save image as png but i want to save it in jpg
I changed Bitmap.CompressFormat.Png to Bitmap.CompressFormat.Jpg
but what i am getting is a black jpg file because the writing is in black
and the background is already black. How can i make image background white?
code i changed
using (var fs = new FileStream(extFileName, FileMode.OpenOrCreate))
{
_capture.CanvasBitmap().Compress(Bitmap.CompressFormat.Jpg, 100, fs);
}
Looking for help. Thanks
I think you can only do this by setting the color on a Canvas.
See How to change the background color of a saved transparent bitmap
So you could try changing:
to something like:
But this code is untested here – sorry!