Issue
Hi I have managed to create a drawable from a path as show here:
Drawable drawable = Drawable.createFromPath(path);
but the image that shows up on the map is very large because it is taken from the camera and stored in the SD card is there a way to make the image smaller when viewed on the map?
Solution
Is your purpose to just put an image on the Mapview. If that is the case, why don't you use the BitmapFactory to create a Bitmap from the FileInputStream which you open to your image file.
Then on the Bitmap created by BitmapFactory, you could use the createScaledBitmap method to scale the image and then put it on MapView.
EDIT: Create a BitmapDrawable from the scaled Bitmap.
Answered By - chaitanya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.