Ich habe Datei "Image_RGB565.raw", die Bildpuffer im RGB565-Format enthält. Ich möchte, dass dieses Bild in ImageView angezeigt wird. Ist es möglich, ohne zusätzlichen Code in RGB888 umzuwandeln?Wie man RGB565 Puffer zu ImageView lädt
Ich habe versucht,
BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inPreferredConfig = Bitmap.Config.RGB_565; Bitmap bitmap = BitmapFactory.decodeFile("Image_001_RGB565.raw");
aber Bitmap ist null.
dann habe ich versucht, auch mich mit laden bytearray
BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inPreferredConfig = Bitmap.Config.RGB_565; Bitmap bitmap = BitmapFactory.decodeFile(decodeByteArray(data, 0, data.length, opt);
Bitte leiten Richtung zu korrigieren. Meine Bildgröße ist 160x160.
Hallo Will, ich konnte das Bild nach Ihrem Vorschlag anzeigen. Danke vielmals. – JRC
@JRC glücklich zu helfen; kreuze die Antwort an und gib mir ein paar Punkte! – Will
Super hilfreich. Danke für die ausführliche Information! –