0

Hello

Im currently creating BMPs as a bufferedimage as following:

BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_INT_RGB);

Thing is that black and white is more than enough for me so would I do this:

BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_BYTE_BINARY);

?

Thanks

1
Contributor
1
Reply
2
Views
4 Years
Discussion Span
Last Post by riahc3
0

Yup, just like I said

BufferedImage.TYPE_BYTE_BINARY

Reduces a black and white BMP from 744kb to 33kb. Huge difference especially when FTPing over a VPN.

Solved by me.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.