Skip to content
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

Make Background Transparent for Android #87

Closed
wants to merge 5 commits into from
Closed

Make Background Transparent for Android #87

wants to merge 5 commits into from

Conversation

Hopding
Copy link

@Hopding Hopding commented Oct 3, 2017

Fixes #86. This PR maps the white background pixels for signature Bitmaps to transparent pixels. This way on both Android and iOS, the signature PNGs will have transparent backgrounds.

final Canvas canvas = new Canvas(signatureBitmap);
this.draw(canvas);

// The signatureBitmap now contains the signature with a white background,
// so we will change it to a transparent background.
for (int x = 0; x < signatureBitmap.getWidth(); x++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are two for loops. What about the performance of the component ? Did you do any performance test.

@john1jan
Copy link
Contributor

john1jan commented Nov 8, 2017

@jedt any update on this

@john1jan
Copy link
Contributor

@Hopding i have solved using a simple technique to setting transparent background. check #97

@Hopding
Copy link
Author

Hopding commented Jan 8, 2019

I'm closing this in favor of #97. It's been over a year since I opened this, so I doubt it's going to be merged anyhow.

@Hopding Hopding closed this Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants