All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.digitalcollections.turbojpeg.imageio.TurboJpegImageReadParam Maven / Gradle / Ivy

Go to download

ImageIO plugin for reading and writing JPEG images via libjpeg-turbo/turbojpeg. Requires the libjpeg-turbo and turbojpeg shared native libraries to be installed on the system.

There is a newer version: 0.6.8
Show newest version
package de.digitalcollections.turbojpeg.imageio;

import com.google.common.collect.ImmutableSet;
import javax.imageio.ImageReadParam;

public class TurboJpegImageReadParam extends ImageReadParam {
  private int rotationDegree;

  public int getRotationDegree() {
    return rotationDegree;
  }

  public void setRotationDegree(int rotationDegree) {
    if (!ImmutableSet.of(90, 180, 270).contains(rotationDegree)) {
      throw new IllegalArgumentException("Illegal rotation, must be 90, 180 or 270");
    }
    this.rotationDegree = rotationDegree;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy