signaturepad

XF - SignaturePad show strokes only when the touch ends

て烟熏妆下的殇ゞ 提交于 2019-12-05 17:29:56
问题 I'm using SignaturePad with Xamarin.Forms and it works fine even on basic hardware devices, but I've struggled with a weird behavior with just one device: Samsung Galaxy Tab E 7.0 3G SM-T116 Tablet. The problem is that the strokes on SignaturePad view are shown only when the touch is released from the screen. For example, if I make a long horizontal side to side line slowly, the whole stroke is invisible until I release the screen touch. Anyone already had a similar situation? How can I

Classic ASP and Signature Pad

陌路散爱 提交于 2019-12-04 18:44:05
I'm trying to get a Classic ASP version of this app to save images to my server: https://github.com/szimek/signature_pad I've tried various combinations of using the Base64 output but have not had any success. I've searched this site and Googled but haven't been able to find anything that makes sense to me. If anyone has any ideas on how to convert the output from Signature Pad to a server side image I would be very grateful! The JS code is: var wrapper = document.getElementById("signature-pad"), clearButton = wrapper.querySelector("[data-action=clear]"), savePNGButton = wrapper.querySelector(

How can I upload an image to S3 with rails' Active Storage from a <canvas /> in a rails form?

天涯浪子 提交于 2019-12-04 13:20:37
As stated in the title I'm trying to upload an image to my S3 bucket with rails' Active Storage from a element that is nested within a rails form. So far I've been able to use <%= f.input :signature, type: file_field(:user, :signature), %> to upload an image with Active Storage. The User class has_one_attached :signature . The images upload correctly when I use a file_field, so that's not part of the problem. So far my simple_form has: <div class="signature_pad text-center form-group"> <div class="signature_pad_heading"> Enter your Signature: </div> <div class="signature_pad_body"> <canvas id=

Retrieve image from SignaturePadView with MVVM architecture

这一生的挚爱 提交于 2019-12-04 07:56:40
I'm developing a Xamarin.Forms application with Prism framework in a MVVM architecture. I need to collect the signature from the screen, so I decided to include the SignaturePad library. With NuGet I included Xamarin.Controls.SignaturePad and Xamarin.Controls.SignaturePad.Forms packages. In page layout (built with XAML) I have the signature widget: <signature:SignaturePadView x:Name="padView" HeightRequest="130" CaptionText="Sign" CaptionTextColor="Black" ClearText="Clean" ClearTextColor="Black" BackgroundColor="White" SignatureLineColor="Black" StrokeWidth="2" StrokeColor="Black"