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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.