-
Method Summary
Set the height of the image in pixels
void
Set the bytes of the image along with the format
Set the `object-fit` CSS property of the image.
Set the url from which the image shall be fetched
Set the width of the image in pixels
Methods inherited from interface com.persequor.extension.frontend.data.IHasId
getId, id
Methods inherited from interface com.persequor.extension.frontend.data.ILinkable
setLink
-
Method Details
-
setUrl
Set the url from which the image shall be fetched
- Parameters:
url
- The url
-
setWidth
Set the width of the image in pixels
- Parameters:
width
- The width
-
setHeight
Set the height of the image in pixels
- Parameters:
height
- The height
-
setImageData
void setImageData(byte[] bytes,
String contentType)
Set the bytes of the image along with the format
- Parameters:
bytes
- The bytes
contentType
- File format. E.g. image/png, image/jpg, etc.
-
setObjectFit
Set the `object-fit` CSS property of the image.
- Parameters:
objetFit
-
- Returns:
- the image object