public class XWPFPicture
extends java.lang.Object
Constructor and Description |
---|
XWPFPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture ctPic, XWPFRun run) |
Modifier and Type | Method and Description |
---|---|
org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture |
getCTPicture()
Return the underlying CTPicture bean that holds all properties for this picture
(返回包含此图片所有属性的底层 CTPicture bean)
|
double |
getDepth()
Returns the depth of the picture (in points).
(返回图片的深度(以磅为单位)。)
|
java.lang.String |
getDescription() |
XWPFPictureData |
getPictureData()
Get the PictureData of the Picture, if present.
(获取图片的 PictureData(如果存在)。)
|
double |
getWidth()
Returns the width of the picture (in points).
(返回图片的宽度(以磅为单位)。)
|
void |
setPictureReference(PackageRelationship rel)
Link Picture with PictureData
(将图片与图片数据链接)
|
public XWPFPicture(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture ctPic, XWPFRun run)
public void setPictureReference(PackageRelationship rel)
rel
-
(相对 -)
public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture getCTPicture()
public XWPFPictureData getPictureData()
public double getWidth()
public double getDepth()
public java.lang.String getDescription()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.