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

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.

Answers

  • XamtasticXamtastic Member ✭✭✭

    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.

  • LeonumenLeonumen Member
    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?
Sign In or Register to comment.