public class ImageConvertDto extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageConvertDto.ImageConvertDtoBuilder |
| Constructor and Description |
|---|
ImageConvertDto() |
ImageConvertDto(byte[] image,
String imageId,
String pages,
Map<String,List<ImageTransformDto>> transformations) |
| Modifier and Type | Method and Description |
|---|---|
static ImageConvertDto.ImageConvertDtoBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
byte[] |
getImage()
The image that we want to transform.
|
String |
getImageId()
Id of the registered image that we want to transform.
|
String |
getPages()
Which page number / scene numbers do we want to transform?
|
Map<String,List<ImageTransformDto>> |
getTransformations()
A collection of transformations we want to perform on the image.
|
int |
hashCode() |
void |
setImage(byte[] image)
The image that we want to transform.
|
void |
setImageId(String imageId)
Id of the registered image that we want to transform.
|
void |
setPages(String pages)
Which page number / scene numbers do we want to transform?
|
void |
setTransformations(Map<String,List<ImageTransformDto>> transformations)
A collection of transformations we want to perform on the image.
|
String |
toString() |
public static ImageConvertDto.ImageConvertDtoBuilder builder()
public byte[] getImage()
imageId should be set (to convert a registered image).public String getImageId()
image bytes should be set.public String getPages()
Value can be a number (1), a range (3-6) and multiple numbers can be seperated using a comma. For example: value "1,4-6" will return page 1, 4 and 5. This index is 0-based (so number 0 will return page 1)
public Map<String,List<ImageTransformDto>> getTransformations()
Every entry consists of a key and a list of transformations.
The key can be used to identify the correct image in the response. In the key, you can use the wildcard *. This value will be replaced with the page number in the returning key. So if you supply "flower-*" as key and you convert page 1 and 2, the response will contain an image with key "flower-1" and "flower-2".
The list of transformations contains of all the transformations you want to execute on the image. These will be executed in the supplied order.
public void setImage(byte[] image)
imageId should be set (to convert a registered image).public void setImageId(String imageId)
image bytes should be set.public void setPages(String pages)
Value can be a number (1), a range (3-6) and multiple numbers can be seperated using a comma. For example: value "1,4-6" will return page 1, 4 and 5. This index is 0-based (so number 0 will return page 1)
public void setTransformations(Map<String,List<ImageTransformDto>> transformations)
Every entry consists of a key and a list of transformations.
The key can be used to identify the correct image in the response. In the key, you can use the wildcard *. This value will be replaced with the page number in the returning key. So if you supply "flower-*" as key and you convert page 1 and 2, the response will contain an image with key "flower-1" and "flower-2".
The list of transformations contains of all the transformations you want to execute on the image. These will be executed in the supplied order.
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.