hanks-zyh / HTextView

Animation effects to text, not really textview
Apache License 2.0
5.62k stars 809 forks source link

Problem with transparent background #106

Open Hobyrr opened 5 years ago

Hobyrr commented 5 years ago

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 !