public interface IImageProvider
| Modifier and Type | Method and Description |
|---|---|
NullImageBehaviour |
getBehaviour()
Returns the behaviour to use when the stream of the image is null.
|
java.lang.Float |
getHeight(java.lang.Float defaultHeight)
Returns the height image with pixel unit.
|
ImageFormat |
getImageFormat()
Returns the image format.
|
java.lang.Float |
getWidth(java.lang.Float defaultWidth)
Returns the width image with pixel unit.
|
boolean |
isResize()
Returns true if call of
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise. |
boolean |
isUseImageSize()
Returns true if image size comes from the image and false otherwise.
|
boolean |
isValid()
Returns true if the image provider is valid (ex : input stream not null) and false otherwise.
|
void |
setBehaviour(NullImageBehaviour behaviour)
Set the behaviour to use when the stream of the image is null.
|
void |
setHeight(java.lang.Float height)
Set the height image with pixel unit.
|
void |
setResize(boolean resize)
Set true if call of
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise. |
void |
setSize(java.lang.Float width,
java.lang.Float height)
Set the width and height image with pixel unit.
|
void |
setUseImageSize(boolean useImageSize)
Set true if image size comes from the image and false otherwise.
|
void |
setWidth(java.lang.Float width)
Set the width image with pixel unit.
|
void |
write(java.io.OutputStream outputStream)
Write the binary data of the image in the given output stream.
|
void write(java.io.OutputStream outputStream)
throws java.io.IOException
outputStream - java.io.IOExceptionImageFormat getImageFormat()
java.lang.Float getWidth(java.lang.Float defaultWidth)
throws java.io.IOException
defaultWidth - as pixeljava.io.IOExceptionvoid setWidth(java.lang.Float width)
width - java.lang.Float getHeight(java.lang.Float defaultHeight)
throws java.io.IOException
defaultHeight - as pixeljava.io.IOExceptionvoid setHeight(java.lang.Float height)
height - void setSize(java.lang.Float width,
java.lang.Float height)
width - height - boolean isUseImageSize()
void setUseImageSize(boolean useImageSize)
useImageSize - void setResize(boolean resize)
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise.resize - boolean isResize()
setWidth(Float) must compute image height with ratio or if call of
setHeight(Float) must compute image with with ratio and false otherwise.NullImageBehaviour getBehaviour()
void setBehaviour(NullImageBehaviour behaviour)
behaviour - boolean isValid()
Copyright © 2022. All Rights Reserved.