public class PadesVisualImage
extends java.lang.Object
Constructor and Description |
---|
PadesVisualImage()
Creates empty Image with default settings
|
PadesVisualImage(byte[] imageContent,
java.lang.String imageMimeType)
Creates Image with default settings from image content bytes
|
PadesVisualImage(java.lang.String imageUrl,
java.lang.String imageMimeType)
Creates Image with default settings from an image URL's
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent() |
PadesHorizontalAlign |
getHorizontalAlign() |
java.lang.String |
getMimeType() |
int |
getOpacity() |
java.lang.String |
getUrl() |
PadesVerticalAlign |
getVerticalAlign() |
void |
setContent(byte[] imageContent)
Sets the image content bytes
|
void |
setContent(java.io.InputStream imageStream)
Sets the image stream
|
void |
setContent(java.lang.String imagePath) |
void |
setHorizontalAlign(PadesHorizontalAlign horizontalAlign)
Sets the image horizontal alignment inside the signature rectangle
|
void |
setMimeType(java.lang.String mimeType) |
void |
setOpacity(int opacity)
Sets the image opacity value between 0 and 100 (0 for transparent, 100 for opaque).
|
void |
setUrl(java.lang.String url)
Sets the URL to download the image
|
void |
setVerticalAlign(PadesVerticalAlign verticalAlign)
Sets the image vertical alignment inside the signature rectangle
|
com.lacunasoftware.restpki.PadesVisualImageModel |
toModel() |
public PadesVisualImage()
public PadesVisualImage(byte[] imageContent, java.lang.String imageMimeType)
imageContent
- imageMimeType
- public PadesVisualImage(java.lang.String imageUrl, java.lang.String imageMimeType)
imageUrl
- imageMimeType
- public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- Image URLpublic byte[] getContent()
public void setContent(byte[] imageContent)
imageContent
- Image content bytespublic void setContent(java.io.InputStream imageStream) throws java.io.IOException
imageStream
- Image streamjava.io.IOException
public void setContent(java.lang.String imagePath) throws java.io.IOException
java.io.IOException
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
public int getOpacity()
public void setOpacity(int opacity)
opacity
- Opacity value (0 is transparent, 100 is opaque).public PadesHorizontalAlign getHorizontalAlign()
public void setHorizontalAlign(PadesHorizontalAlign horizontalAlign)
horizontalAlign
- public PadesVerticalAlign getVerticalAlign()
public void setVerticalAlign(PadesVerticalAlign verticalAlign)
verticalAlign
- public com.lacunasoftware.restpki.PadesVisualImageModel toModel()