public class ImageModificationDto extends Object
| Constructor and Description |
|---|
ImageModificationDto() |
ImageModificationDto(ImageModificationDto original) |
ImageModificationDto(ImageResolutionDto resolution,
CropDto crop,
DimensionsDto density) |
ImageModificationDto(ImageResolutionDto resolution,
CropDto crop,
DimensionsDto density,
DimensionsDto boundaries) |
ImageModificationDto(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
ImageTransformDto |
asTransformDto() |
boolean |
equals(Object o) |
Long |
getBaseResolutionId()
The id of the resolution whose modification was used as the base for building this one.
|
DimensionsDto |
getBoundaries() |
CropDto |
getCrop() |
DimensionsDto |
getDensity() |
ImageResolutionDto |
getResolution() |
boolean |
hasBoundaries() |
boolean |
hasCrop() |
int |
hashCode() |
boolean |
isRegistered()
Returns
true if this modification is registered for the resolution it actually returns
This will be so if getBaseResolutionId() equals the id property of getResolution(). |
void |
setBaseResolutionId(Long baseResolutionId) |
void |
setBoundaries(DimensionsDto boundaries) |
void |
setCrop(CropDto crop) |
void |
setDensity(DimensionsDto density) |
void |
setResolution(ImageResolutionDto resolution) |
public ImageModificationDto()
public ImageModificationDto(ImageModificationDto original)
public ImageModificationDto(int width,
int height)
public ImageModificationDto(ImageResolutionDto resolution, CropDto crop, DimensionsDto density)
public ImageModificationDto(ImageResolutionDto resolution, CropDto crop, DimensionsDto density, DimensionsDto boundaries)
public boolean hasCrop()
public boolean hasBoundaries()
public boolean isRegistered()
true if this modification is registered for the resolution it actually returns
This will be so if getBaseResolutionId() equals the id property of getResolution().true if this modification is registered for the resolution it returnspublic ImageTransformDto asTransformDto()
public Long getBaseResolutionId()
The id of the resolution whose modification was used as the base for building this one.
If this modification is registered directly to the resolution, this id will be the same as
the id property of getResolution(). If another modification was used as base but then
translated to match the requested resolution, then this property should return the id of
the original modification, not the result of the translation.
null if nonepublic ImageResolutionDto getResolution()
public CropDto getCrop()
public DimensionsDto getDensity()
public DimensionsDto getBoundaries()
public void setBaseResolutionId(Long baseResolutionId)
public void setResolution(ImageResolutionDto resolution)
public void setCrop(CropDto crop)
public void setDensity(DimensionsDto density)
public void setBoundaries(DimensionsDto boundaries)
Copyright © 2020. All rights reserved.