public interface Picture
Modifier and Type | Method and Description |
---|---|
String |
getAlt() |
ClientAnchor |
getClientAnchor() |
String |
getName() |
PictureData |
getPictureData()
Return picture data for this picture
|
String |
getPictureId() |
ClientAnchor |
getPreferredSize() |
void |
resize()
Reset the image to the original size.
|
void |
resize(double scale)
Reset the image to the original size.
|
void |
setClientAnchor(ClientAnchor anchor) |
void resize()
Please note, that this method works correctly only for workbooks with default font size (Arial 10pt for .xls and Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
void resize(double scale)
Please note, that this method works correctly only for workbooks with default font size (Arial 10pt for .xls and Calibri 11pt for .xlsx). If the default font is changed the resize() procedure can be 'off'.
scale
- the amount by which image dimensions are multiplied relative to the original size.
resize(1.0)
sets the original size, resize(0.5)
resize to 50% of the original,
resize(2.0)
resizes to 200% of the original.ClientAnchor getPreferredSize()
PictureData getPictureData()
String getName()
String getAlt()
ClientAnchor getClientAnchor()
String getPictureId()
void setClientAnchor(ClientAnchor anchor)
Copyright © 2020. All rights reserved.