Java ImageIO Usage createImageWriteParam(ImageWriter writer, float quality)

Here you can find the source of createImageWriteParam(ImageWriter writer, float quality)

Description

create Image Write Param

License

Apache License

Declaration

public static ImageWriteParam createImageWriteParam(ImageWriter writer, float quality) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;

public class Main {
    public static ImageWriteParam createImageWriteParam(ImageWriter writer, float quality) {
        ImageWriteParam param = writer.getDefaultWriteParam();
        param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
        param.setCompressionQuality(quality);
        return param;
    }//  ww w .  j  av  a 2s. co m
}

Related

  1. closeEL(ImageInputStream iis)
  2. createAsciiField(int number, String name, String val)
  3. deregisterProvider( final ServiceRegistry registry, final IIOServiceProvider provider, final Class category)
  4. getParams(ImageWriter writer)
  5. guessCompressionRatio(final ImageReaderWriterSpi spi)
  6. lookupProviderByName( final ServiceRegistry registry, final String providerClassName)