private Integer mImageIds[] = {
R.drawable.image1,
R.drawable.image2,
R.drawable.image3,
};
Resources res=you_class_name.this.getResources();
Drawable dra=res.getDrawable(mImageIds[myposition]); // myposition is spacifi position to the array
set_imageview.setImageDrawable(dra);
Bitmap bitmap = ((BitmapDrawable)dra).getBitmap();
System.out.println(" SAve To Image :"+bitmap); // you see the bitmap
No comments:
Post a Comment