BlackBerry - zoom jde 4.5

 
Vista:

zoom jde 4.5

Publicado por Juan Fernandez (3 intervenciones) el 02/08/2010 23:28:36
Hola. estoy haciendo una aplicacion que tiene una especia de mapa de una conferencia.
habia encontrado en la seccion de ejemplos de jde 5.0 como hacer un zoom de una imagen.
pero necesito hacerlo para que corra en dispositivos con jde 4.5.
Alguien tiene alguna idea?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:zoom jde 4.5

Publicado por YamilBracho (5 intervenciones) el 11/11/2010 15:46:07
Puedes probar hacer el resize del bitmap. Puede susar esta rutina para hacerlo
public static Bitmap resizeBitmap(Bitmap image, int width, int height) {
int rgb[] = new int[image.getWidth() * image.getHeight()];

image.getARGB(rgb, 0, image.getWidth(), 0, 0, image.getWidth(), image
.getHeight());

int rgb2[] = rescaleArray(rgb, image.getWidth(), image.getHeight(),
width, height);

Bitmap temp2 = new Bitmap(width, height);

temp2.setARGB(rgb2, 0, width, 0, 0, width, height);

return temp2;
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar