Manipulating Bmp Files

Converting compressed BMP RLE4

Both loading and saving of the Rle4 compressed Bmp images are supported.

try (Image image = Image.load("Rle4.bmp"))
{
BmpOptions options = new BmpOptions();
options.setCompression(BitmapCompression.Rle4);
options.setBitsPerPixel(4);
options.setPalette(ColorPaletteHelper.create4Bit());
image.save("output.bmp", options);
}