How do I resize a bitmap without losing quality Android?Īndroid: Resizing Bitmaps without losing quality createScaledBitmap(bMap, 150, 100, true) // Loads the resized Bitmap into an ImageView ImageView image = (ImageView) findViewById(R. my_image) // Resize the bitmap to 150×100 (width x height) Bitmap bMapScaled = Bitmap. How do I resize a bitmap image in Android?ĭecodeResource(getResources(), R. Can a picture be scaled down to fit the imageview?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |