SilkySignature

by ww6015132

ww6015132 / SilkySignature

An Smooth and silky signature pad for android

212 Stars 42 Forks Last release: Not found 42 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

SilkySignature

A smooth and silky signature pad for android.

app screenshot

Updates

Method added *

getCompressedSignatureBitmap(int compressLevel)
- compressLeven is from 1-100, which mean compress percentage of bitmap *
getFixedSizeSignatureBitmap(int desiredWidth)
- desiredWidth is target width, which would adjust height automatically *
getFixedSizeSignatureBitmap(int desiredWidth,int desiredHeight)
- desiredWidth is target width and desiredHeight is target height

Bug fixed * SVG double click bug fixed

Download

Download SilkySignature or grab via Gradle:

implementation 'com.williamww:silky-signature:0.1.0'

Note

You MUST request runtime permission when you are trying to save the signature image on version 6.0 or higher!

Example

Add this to layout file ```xml

```

Control in code ```java

mSignaturePad = (SignaturePad) findViewById(R.id.signature_pad); mSignaturePad.setOnSignedListener(new SignaturePad.OnSignedListener() { @Override public void onSigned() { //Event triggered when the pad is signed }

@Override public void onClear() { //Event triggered when the pad is cleared } }); ``

To get signature image
*
getSignatureBitmap()
- A signature bitmap with a white background.
*
getTransparentSignatureBitmap()
- A signature bitmap with a transparent background.
*
getSignatureSvg()` - A signature Scalable Vector Graphics document in svg format.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.