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

Problem with transparent background #106

Open
Hobyrr opened this issue Jun 28, 2019 · 0 comments
Open

Problem with transparent background #106

Hobyrr opened this issue Jun 28, 2019 · 0 comments
Labels

Comments

@Hobyrr
Copy link

Hobyrr commented Jun 28, 2019

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants