Convertir une image RVB en bitmapConvertir une image RVB en une erreur Bitmap dans 2.2
public static Bitmap rgbToBitmap(int[] rgb, int width, int height) {
if (rgb == null) throw new NullPointerException();
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
bitmap.setPixels(rgb, 0, width, 0, 0, width, height);
return bitmap;
}
Thanks.Its non solved.Its jette erreur « mémoire sur une allocation 1327124 octets » dans Htc wildfire 2.2.1 – patel
Merci pour votre rejouer. Mais comment puis-je utiliser dans la fonction ci-dessus (Bitmap rgbToBitmap). – patel