hanks-zyh / hanks-zyh/HTextView

Problem with transparent background

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Backlog
Dominant language
Java
Stars
5.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

Hi !

I use your library and set up/show view works fine. But i need to save the views as list of bitmaps like:

> Bitmap b1 = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888);
> Canvas c = new Canvas(b1);
> v.layout(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
> v.draw(c);
> bitmapFromView.add(b1);

All works, i checked the list in debug.

Then i use getPixels(..) on each bitmap. When i've a colorful background, tables are valid, but when i set a transparent background, transparent pixels have a strange negative value (like -570425344). Did you use a specific transparency encoding ? Or have you any idea ?

Thx !

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.