Class OFDPageGraphicsConfiguration
java.lang.Object
java.awt.GraphicsConfiguration
org.ofdrw.graphics2d.OFDPageGraphicsConfiguration
OFD页面图形配置
- Since:
- 2023-2-23 20:10:03
- Author:
- 权观宇
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) 创建图片合成方式获取绘制区域边界大小获取颜色模式getColorModel(int transparency) 获取指定透明类型的颜色模式获取默认的变换矩阵获取该配置信息所关联的图形设备对象获取归一化变换矩阵
-
Constructor Details
-
OFDPageGraphicsConfiguration
public OFDPageGraphicsConfiguration(double width, double height) OFD页面图形配置对象- Parameters:
width- 页面宽度,单位:毫米height- 页面高度,单位:毫米
-
-
Method Details
-
getDevice
获取该配置信息所关联的图形设备对象- Specified by:
getDevicein classGraphicsConfiguration- Returns:
- 关联的图形设备对象
-
getColorModel
获取颜色模式- Specified by:
getColorModelin classGraphicsConfiguration- Returns:
- 固定位透明模式
-
getColorModel
获取指定透明类型的颜色模式- Specified by:
getColorModelin classGraphicsConfiguration- Parameters:
transparency- 透明类型- Returns:
- 颜色模式(可能返回null)
-
getDefaultTransform
获取默认的变换矩阵- Specified by:
getDefaultTransformin classGraphicsConfiguration- Returns:
- 默认的变换矩阵
-
getNormalizingTransform
获取归一化变换矩阵- Specified by:
getNormalizingTransformin classGraphicsConfiguration- Returns:
- 归一化变换矩阵
-
getBounds
获取绘制区域边界大小- Specified by:
getBoundsin classGraphicsConfiguration- Returns:
- 绘制区域大小
-
createCompatibleVolatileImage
public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException 创建图片合成方式- Overrides:
createCompatibleVolatileImagein classGraphicsConfiguration- Parameters:
width- 图片宽度height- 图片高度caps- 图片功能?transparency- 透明方式.- Returns:
- VolatileImage
- Throws:
AWTException- 图片创建异常
-