| Package | Description |
|---|---|
| com.foreach.imageserver.dto | |
| com.foreach.imageserver.math |
| Modifier and Type | Method and Description |
|---|---|
CropDto |
CropDto.CropDtoBuilder.build() |
CropDto |
ImageTransformDto.getCrop()
Contains the settings for the crop that should be taken from the original image.
|
CropDto |
ImageModificationDto.getCrop() |
| Modifier and Type | Method and Description |
|---|---|
ImageTransformDto.ImageTransformDtoBuilder |
ImageTransformDto.ImageTransformDtoBuilder.crop(CropDto crop)
Contains the settings for the crop that should be taken from the original image.
|
void |
ImageTransformDto.setCrop(CropDto crop)
Contains the settings for the crop that should be taken from the original image.
|
void |
ImageModificationDto.setCrop(CropDto crop) |
| Constructor and Description |
|---|
CropDto(CropDto original) |
ImageModificationDto(ImageResolutionDto resolution,
CropDto crop,
DimensionsDto density) |
ImageModificationDto(ImageResolutionDto resolution,
CropDto crop,
DimensionsDto density,
DimensionsDto boundaries) |
| Modifier and Type | Method and Description |
|---|---|
static CropDto |
ImageServerConversionUtils.extendCrop(CropDto original,
AspectRatio aspectRatio)
This will extend an existing crop to match a given aspect ratio.
|
static CropDto |
ImageServerConversionUtils.moveToFit(CropDto original,
DimensionsDto box)
Will shift a crop to fit entirely inside the box.
|
static CropDto |
ImageServerConversionUtils.normalize(CropDto original,
DimensionsDto box)
Will translate a crop to fit inside the box specified.
|
static CropDto |
ImageServerConversionUtils.shrinkCrop(CropDto original,
AspectRatio aspectRatio)
This will shrink an existing crop to match a given aspect ratio.
|
| Modifier and Type | Method and Description |
|---|---|
static CropDto |
ImageServerConversionUtils.extendCrop(CropDto original,
AspectRatio aspectRatio)
This will extend an existing crop to match a given aspect ratio.
|
static boolean |
ImageServerConversionUtils.isWithinBox(CropDto crop,
DimensionsDto box)
Checks if a crop is entirely positioned within a box.
|
static CropDto |
ImageServerConversionUtils.moveToFit(CropDto original,
DimensionsDto box)
Will shift a crop to fit entirely inside the box.
|
static CropDto |
ImageServerConversionUtils.normalize(CropDto original,
DimensionsDto box)
Will translate a crop to fit inside the box specified.
|
static CropDto |
ImageServerConversionUtils.shrinkCrop(CropDto original,
AspectRatio aspectRatio)
This will shrink an existing crop to match a given aspect ratio.
|
Copyright © 2020. All rights reserved.