Can you get an encoded bmp file from skiasharp or signaturepad? RRS feed

  • Question

  • User389060 posted

    As the title says, i'm trying to get an actual bmp file (or byte[] formatted as such) from an image drawn by the user in either of the canvas provided by these tools but i could only find solutions for png or jpg.

    Is that even possible? Any help or guidance is appreciated.

    Friday, September 13, 2019 3:39 PM

All replies

  • User383768 posted

    Any reason you don't convert it from a png or jpg to a bmp?

    Another option is to save each pixel and draw it into a BMP file, on save. This is what I have done in the past specifically for a Signature Pad.

    Friday, September 13, 2019 6:03 PM
  • User389060 posted

    I tried converting it from png but would still get the PNG on the binary, so i guessed it wasnt working out and would need to get it directly as a BMP. Can you share the solution for the pixel drawing?

    Friday, September 13, 2019 6:41 PM