|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xssf.usermodel.XSSFShape
org.apache.poi.xssf.usermodel.XSSFPicture
public final class XSSFPicture
Represents a picture shape in a SpreadsheetML drawing.
| Field Summary |
|---|
| Fields inherited from class org.apache.poi.xssf.usermodel.XSSFShape |
|---|
EMU_PER_PIXEL, EMU_PER_POINT, PIXEL_DPI, POINT_DPI |
| Method Summary | |
|---|---|
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture |
getCTPicture()
Return the underlying CTPicture bean that holds all properties for this picture |
org.apache.poi.ss.usermodel.PictureData |
getPictureData()
Return picture data for this shape |
org.apache.poi.ss.usermodel.ClientAnchor |
getPreferredSize()
Calculate the preferred size for this picture. |
XSSFClientAnchor |
getPreferredSize(double scale)
Calculate the preferred size for this picture. |
void |
resize()
Reset the image to the original size. |
void |
resize(double scale)
Reset the image to the original size. |
| Methods inherited from class org.apache.poi.xssf.usermodel.XSSFShape |
|---|
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPicture getCTPicture()
public void resize()
Please note, that this method works correctly only for workbooks with the default font size (Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
resize in interface org.apache.poi.ss.usermodel.Picturepublic void resize(double scale)
Please note, that this method works correctly only for workbooks with the default font size (Calibri 11pt for .xlsx). If the default font is changed the resized image can be streched vertically or horizontally.
resize in interface org.apache.poi.ss.usermodel.Picturescale - 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.public org.apache.poi.ss.usermodel.ClientAnchor getPreferredSize()
getPreferredSize in interface org.apache.poi.ss.usermodel.Picturepublic XSSFClientAnchor getPreferredSize(double scale)
scale - the amount by which image dimensions are multiplied relative to the original size.
public org.apache.poi.ss.usermodel.PictureData getPictureData()
getPictureData in interface org.apache.poi.ss.usermodel.Picture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||