xamarin / SignaturePad

MIT License
245 stars 150 forks source link

[Android] SignaturePad saves black signature image when set background to transparent #181

Open JigarM opened 4 years ago

JigarM commented 4 years ago

Description

I need the transparent background with black strocke colored signature. Seems like this is working fine with iOS. But Android have an issue with transparent background. Help will be appreciated.

Code

var signaturePadView1 = new SignaturePadView(Context) { StrokeWidth = 8, BackgroundColor = Android.Graphics.Color.Transparent, StrokeColor = Android.Graphics.Color.Black };

Expected Behavior

It should provide the transparent signature

Actual Behavior

It gave me the black background signature instead of transparent background

xamarindev01 commented 4 years ago

Any update on this?

imuller commented 4 years ago

@JigarM @xamarindev01 Fixed it by setting the StrokeColor and FillColor: https://github.com/xamarin/SignaturePad/issues/147