Class ImageUtils
java.lang.Object
org.openstreetmap.josm.gui.layer.geoimage.ImageUtils
Image utilities
- Since:
- 18592
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyExif(ImageMetadata image, InputStream inputStream) Apply exif information from anInputStreamstatic BufferedImageapplyExifRotation(BufferedImage img, Integer exifOrientation) Rotate an image, if neededprivate static com.drew.metadata.MetadatagetMetadata(URI uri, InputStream inputStream) private static <T> voidstatic ImageReadParamwithSubsampling(ImageReader reader, Dimension target) Common subsampling method
-
Constructor Details
-
ImageUtils
private ImageUtils()
-
-
Method Details
-
applyExifRotation
Rotate an image, if needed- Parameters:
img- The image to rotateexifOrientation- The exif orientation- Returns:
- The rotated image or the original
-
withSubsampling
Common subsampling method- Parameters:
reader- The image readertarget- The target area- Returns:
- The sampling parameters
-
applyExif
Apply exif information from anInputStream- Parameters:
image- The image to apply information toinputStream- The input stream to read
-
getMetadata
-
ifNotNull
-