| Modifier and Type | Method and Description |
|---|---|
| public ClientAnchor | |
| public Dimension | Returns: image dimension in pixelsReturn the dimension of the embedded image in pixel |
| public PictureData | |
| public ClientAnchor | Returns: XSSFClientAnchor with the preferred size for this imageCalculate the preferred size for this picture. |
| public ClientAnchor | Returns: ClientAnchor with the preferred size for this imagethe amount by which image width is multiplied relative to the original width. scaleX, double the amount by which image height is multiplied relative to the original height. scaleY)Calculate the preferred size for this picture. |
| public Sheet | |
| public void | |
| public void | |
| public void | resize(double
the amount by which the image width is multiplied relative to the original width. scaleX, double the amount by which the image height is multiplied relative to the original height. scaleY)Resize the image. |
| getClientAnchor | back to summary |
|---|---|
public ClientAnchor getClientAnchor()
| |
| getImageDimension | back to summary |
|---|---|
| public Dimension getImageDimension() Return the dimension of the embedded image in pixel
| |
| getPictureData | back to summary |
|---|---|
| public PictureData getPictureData() Return picture data for this picture
| |
| getPreferredSize | back to summary |
|---|---|
| public ClientAnchor getPreferredSize() Calculate the preferred size for this picture.
| |
| getPreferredSize | back to summary |
|---|---|
| public ClientAnchor getPreferredSize(double scaleX, double scaleY) Calculate the preferred size for this picture.
| |
| getSheet | back to summary |
|---|---|
public Sheet getSheet()
| |
| resize | back to summary |
|---|---|
| public void resize() Reset the image to the dimension of the embedded image
| |
| resize | back to summary |
|---|---|
| public void resize(double scale) Resize the image proportionally.
| |
| resize | back to summary |
|---|---|
| public void resize(double scaleX, double scaleY) Resize the image. Please note, that this method works correctly only for workbooks with the default font size (Arial 10pt for .xls and Calibri 11pt for .xlsx). If the default font is changed the resized image can be stretched vertically or horizontally.
| |