Question:I have a
bytethat contains ARGB image data directly. I am trying to find the most performant way to transform this into a
BufferedImagewithout unnecessary iterations, essentially I’d like to configure the
BufferedImagewith 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:
If you have better answer, please add a comment about this, thank you!