New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changing backgroundColor on the fly #133
Comments
Maybe simply swapping colors before sending it to the server would work? You could get raw image data using BTW. The background color is applied when canvas is cleared, so only on initialize or when you call |
@szimek thanks for the response. I was looking to piggy back on the removeBlanks function for this too. I just have to figure out how to tell if it is a background pixel vs a signature pixel. Also is there a way to get the json array representation of the signature |
Unfortunately not at the moment. Only the last 4 points are kept in memory, so there's no way to access all points. It might change in the future, but there are some others issues (mainly related to retina/non-retina screens) with higher priority. You could quite easily change the library to store all points if you really need this data, though. |
@khawye If you have any more questions, please reopen this issue. |
Hey,
on initialize I have the signing pad (canvas) set to a specific color but I would like to save it on a transparent or white background. I already used the linked prototype removeBlanks function to capture just the signature but the bg still rgb(255,243,204) i try to change it via
signaturePad.backgroundColor = rgb(255, 255, 255); but it seems like upon signing stroke, the base64 image has already been registered.
Any ideas?
The text was updated successfully, but these errors were encountered: