Thursday, July 18, 2013

Convert Drawable to Bitmap in Android

Convert Drawable to Bitmap  in Android

Convert Drawable to Bitmap
Bitmap drawable= BitmapFactory.decodeResource(getResources(),
                R.drawable.splash_screen_logo);

              logoview_Splashscreen.setImageBitmap(drawable);


Convert Bitmap
Drawable d =new BitmapDrawable(bitmap);




No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...