public class XEasyPdfImage extends Object implements XEasyPdfComponent
Copyright (c) 2020-2023 xsx All Rights Reserved. x-easypdf is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
XEasyPdfComponent.ContentMode| 构造器和说明 |
|---|
XEasyPdfImage(BufferedImage image,
XEasyPdfImageType imageType)
有参构造
|
XEasyPdfImage(BufferedImage image,
XEasyPdfImageType imageType,
int width,
int height)
有参构造
|
XEasyPdfImage(File imageFile)
有参构造
|
XEasyPdfImage(File imageFile,
int width,
int height)
有参构造
|
XEasyPdfImage(InputStream imageStream,
XEasyPdfImageType imageType)
有参构造
|
XEasyPdfImage(InputStream imageStream,
XEasyPdfImageType imageType,
int width,
int height)
有参构造
|
public XEasyPdfImage(File imageFile)
imageFile - 待添加图片public XEasyPdfImage(InputStream imageStream, XEasyPdfImageType imageType)
imageStream - 待添加图片数据流imageType - 待添加图片类型(扩展名)public XEasyPdfImage(BufferedImage image, XEasyPdfImageType imageType)
image - 待添加图片imageType - 待添加图片类型(扩展名)public XEasyPdfImage(File imageFile, int width, int height)
imageFile - 待添加图片width - 图片宽度height - 图片高度public XEasyPdfImage(InputStream imageStream, XEasyPdfImageType imageType, int width, int height)
imageStream - 待添加图片数据流imageType - 待添加图片类型(扩展名)width - 图片宽度height - 图片高度public XEasyPdfImage(BufferedImage image, XEasyPdfImageType imageType, int width, int height)
image - 待添加图片imageType - 待添加图片类型(扩展名)width - 图片宽度height - 图片高度public XEasyPdfImage setImage(File imageFile)
imageFile - 待添加图片public XEasyPdfImage setImage(BufferedImage image, XEasyPdfImageType imageType)
image - 待添加图片imageType - 待添加图片类型public XEasyPdfImage setImage(InputStream imageStream, XEasyPdfImageType imageType)
imageStream - 待添加图片数据流imageType - 待添加图片类型public XEasyPdfImage disableSelfAdaption()
public XEasyPdfImage enableSelfStyle()
public XEasyPdfImage enableCenterStyle()
public XEasyPdfImage enableChildComponent()
public XEasyPdfImage enableResetContext()
enableResetContext 在接口中 XEasyPdfComponentpublic XEasyPdfImage setNeedInitialize(boolean needInitialize)
needInitialize - 是否需要初始化public XEasyPdfImage setRadians(double radians)
radians - 图片弧度public XEasyPdfImage setMaxWidth(float maxWidth)
maxWidth - 最大宽度public XEasyPdfImage setMaxHeight(float maxHeight)
maxHeight - 最大高度public XEasyPdfImage setMargin(float margin)
margin - 边距public XEasyPdfImage setMarginLeft(float margin)
margin - 边距public XEasyPdfImage setMarginRight(float margin)
margin - 边距public XEasyPdfImage setMarginTop(float margin)
margin - 边距public XEasyPdfImage setMarginBottom(float margin)
margin - 边距public XEasyPdfImage setHorizontalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfImage setVerticalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfImage setPosition(float beginX, float beginY)
setPosition 在接口中 XEasyPdfComponentbeginX - 当前页面X轴坐标beginY - 当前页面Y轴坐标public XEasyPdfImage setWidth(float width)
setWidth 在接口中 XEasyPdfComponentwidth - 宽度public XEasyPdfImage setHeight(float height)
setHeight 在接口中 XEasyPdfComponentheight - 高度public XEasyPdfImage setContentMode(XEasyPdfComponent.ContentMode mode)
setContentMode 在接口中 XEasyPdfComponentmode - 内容模式public void draw(XEasyPdfDocument document, XEasyPdfPage page)
draw 在接口中 XEasyPdfComponentdocument - pdf文档page - pdf页面public XEasyPdfComponent.ContentMode getContentMode()
public Integer getWidth(XEasyPdfDocument document, XEasyPdfPage page)
document - pdf文档page - pdf页面public Integer getHeight(XEasyPdfDocument document, XEasyPdfPage page)
document - pdf文档page - pdf页面public float getMarginTop()
public float getMarginBottom()
public float getMarginLeft()
public float getMarginRight()
public XEasyPdfPositionStyle getHorizontalStyle()
public XEasyPdfPositionStyle getVerticalStyle()
public boolean isUseSelfStyle()
public boolean isCustomRectangle()
public boolean isNeedInitialize()
Copyright © 2023. All rights reserved.