| Package | Description |
|---|---|
| de.digitalcollections.iiif.model.image |
Model classes that represent entities from the IIIF Image API (http://iiif.io/api/image/2.1/).
|
| Modifier and Type | Method and Description |
|---|---|
static ImageApiSelector |
ImageApiSelector.fromImageApiUri(URI imageApiUri) |
static SizeRequest |
SizeRequest.fromString(String str)
Parse an IIIF Image API compliant size request string
|
static RegionRequest |
RegionRequest.fromString(String str)
Parse an IIIF Image API compliant region request string
|
static RotationRequest |
RotationRequest.fromString(String str)
Parse a rotation request from an IIIF Image API compliant rotation string.
|
static ImageApiSelector |
ImageApiSelector.fromString(String str) |
String |
RegionRequest.getCanonicalForm(Dimension imageDims) |
String |
SizeRequest.getCanonicalForm(Dimension nativeSize,
ImageApiProfile profile)
Get the canonical form of this request.
|
String |
ImageApiSelector.getCanonicalForm(Dimension nativeSize,
ImageApiProfile profile,
ImageApiProfile.Quality defaultQuality)
Create the canonical of the Image API request.
|
Rectangle |
RegionRequest.resolve(Dimension imageDims)
Resolve the region request into an actual region that can be used for cropping the image
|
Dimension |
SizeRequest.resolve(Dimension nativeSize,
ImageApiProfile profile) |
Dimension |
SizeRequest.resolve(Dimension nativeSize,
List<Dimension> availableSizes,
ImageApiProfile profile)
Resolve the request to dimensions that can be used for scaling, based on the native size of the image region and the available profile.
|
Dimension |
SizeRequest.resolve(Rectangle region,
ImageApiProfile profile)
Like
SizeRequest.resolve(Dimension, ImageApiProfile), but can be used with a Rectangle, e.g. |
void |
ImageApiSelector.setRegion(String region) |
void |
ImageApiSelector.setRotation(String rotation) |
void |
ImageApiSelector.setSize(String size) |
| Constructor and Description |
|---|
RegionRequest(double x,
double y,
double width,
double height)
Create a RegionRequest request that is expressed using relative values, i.e.
|
RotationRequest(BigDecimal rotation,
boolean mirror)
Create a new rotation request.
|
RotationRequest(int rotation) |
SizeRequest(BigDecimal percentage)
Create a size request that scaled both dimensions according to a fixed percentage, maintaining the aspect ratio.
|
SizeRequest(Integer width,
Integer height)
Create a size request for a given width or height.
|
SizeRequest(int width,
int height,
boolean bestFit)
Create a size request for a given width and height and signal that the server can decide to render smaller resolutions as it deems neccessary.
|
Copyright © 2018. All rights reserved.