Is there a way to create 24 bit BufferedImage with alpha?
I use BufferedImage bi = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB) and I didn’t find proper key for 24-bit BufferedImage with alpha type in documentation.
Is there a way to create 24 bit BufferedImage with alpha? I use BufferedImage
Share
What you have in your question (the
BufferedImage.TYPE_INT_ARGBflag) will do what you want. With respect to your comment:The documentation (link) uses the phrase “8-bit RGBA color components”, indicating 8 bits per color channel per pixel, for a total of 4×8 bits per pixel (one for each of RGBA).