Created
March 18, 2016 14:50
-
-
Save ricdex/3dff546fde58447b528f to your computer and use it in GitHub Desktop.
Modificar imagen en android para que pese menos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BitmapFactory.Options options1 = new BitmapFactory.Options(); | |
options1.inSampleSize = 5; | |
Bitmap bitmap1 = BitmapFactory.decodeResource(getResources(), R.drawable.mapa0x, options1); | |
BitmapDescriptor descriptor1 = BitmapDescriptorFactory.fromBitmap(bitmap1); | |
mGroundOverlay = mMap.addGroundOverlay(new GroundOverlayOptions() | |
.image(descriptor1).anchor(0, 1) | |
.position(new LatLng(-12.089886, -76.975777), options1.outWidth/3, options1.outHeight/3)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Se agrega como groundoverlay para google maps