Question:
I have abyte[]
that contains ARGB image data directly. I am trying to find the most performant way to transform this into a BufferedImage
without unnecessary iterations, essentially I’d like to configure the BufferedImage
with the right raster and color model to use this memory area directly.My current approach is this:
When I inspect the output image, it unfortunately looks bad, it’s a grayscale image with patterns:

Here is the original image for reference:

Best Answer:
If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review