Hi i m new to xamarin forms and i have an app that allows you to take a picture through camera and then i have given a rectangular box for cropping the captured image...i have written code for xamarin android and all this works fine and i can finally save the image as JPG or PNG as well. But i want to save the final image as a .bmp file.
private void SaveOutput(Bitmap croppedImage) {
        if (saveUri != null)
        {
            try
            {
                using var outputStream = ContentResolver.OpenOutputStream(saveUri);
                if (outputStream != null)
                {
                   croppedImage.Compress(Bitmap.CompressFormat.Jpeg, 75, outputStream);
                  
                }
            }
In this function, the croppedImage bitmap is getting compressed to jpg. Instead of that i want to save that bitmap as a .bmp file.i have looked alot, but havent found any solution yet. Can someone please suggest what i can do.