image - Java Bitmap RLE8 format -
does java imageio (or other image handlers) support bi_rle8 image format? thing have managed find bmpimagewriteparam have no idea whatsoever how use that. wonderful.
see this example how write using imagewriter , using imagewriteparam (use instance of bmpimagewriteparam in case). scroll bit down find write example.
instead of line:
imagewriteparam param = writer.getdefaultwriteparam(); you should insert like:
bmpimagewriteparam param = new bmpimagewriteparam(); param.setcompressionmode(imagewriteparam.mode_explicit); param.setcompressiontype("bi_rle8"); you can safely pass null thumbnails , metadata (... in example).
Comments
Post a Comment