How can I convert from ProfilePictureView to Bitmap? It's possible?
I've got it!!
ImageView fbImage = ( ( ImageView)profilePictureFB.getChildAt( 0));
Bitmap bitmap = ( ( BitmapDrawable) fbImage.getDrawable()).getBitmap();
You can also just enable the DrawingCache of the ProfilePictureView and then call a getDrawingCache... like this
ProfilePictureView mImage = (ProfilePictureView) findViewById(R.id.profilepic);
mImage.setDrawingCacheEnabled(true);
mImage.setProfileId(user.getId());
and then when the profile picture is loaded...
Bitmap bitmap = mImage.getDrawingCache();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With