Annotation Interface ImageWriterParams


@Documented @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface ImageWriterParams
An annotation that a resource class can use to pass parameters to the IIOImageProvider.
Version:
$Revision: $
Author:
Ryan J. McDonough
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Specifies the compression mode for the output image.
    float
    Specifies the compression quality of the image being written.
  • Element Details

    • compressionQuality

      float compressionQuality
      Specifies the compression quality of the image being written. By default, the highest compression level is used. A float value between 0.0f and 1.0f are acceptable. The default value is 1.0f;
      Returns:
      compression quality
      Default:
      1.0f
    • compressionMode

      int compressionMode
      Specifies the compression mode for the output image. By default, it uses ImageWriteParam.MODE_COPY_FROM_METADATA.
      Returns:
      compression mode
      Default:
      3