|
| | PrintDeviceSettingData (int device_width, int device_height, RectF device_margin, int orientation, int resolution, int copies) |
| | 带参数的构造函数。 更多...
|
| |
| | PrintDeviceSettingData () |
| | 构造函数并设置默认值。 更多...
|
| |
| | PrintDeviceSettingData (PrintDeviceSettingData settings) |
| | 带另一个打印设备设置数据对象的构造函数。 更多...
|
| |
| synchronized void | delete () |
| | 直接清除C++相关资源。 更多...
|
| |
| int | getCopies () |
| | Get 要打印的份数。此参数仅对PostScript文件有效。 更多...
|
| |
| int | getDevice_height () |
| | Get 设备的高度(以像素为单位)。 更多...
|
| |
| RectF | getDevice_margin () |
| | Get 设备的页边距。 更多...
|
| |
| int | getDevice_width () |
| | Get 设备的宽度(以像素为单位)。 更多...
|
| |
| int | getOrientation () |
| | Get 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 更多...
|
| |
| int | getResolution () |
| | Get 设备的分辨率,以每英寸像素数为单位。 更多...
|
| |
| void | set (int device_width, int device_height, RectF device_margin, int orientation, int resolution, int copies) |
| | 设置值。 更多...
|
| |
| void | setCopies (int value) |
| | Set 要打印的份数。此参数仅对PostScript文件有效。 更多...
|
| |
| void | setDevice_height (int value) |
| | Set 设备的高度(以像素为单位)。 更多...
|
| |
| void | setDevice_margin (RectF value) |
| | Set 设备的页边距。 更多...
|
| |
| void | setDevice_width (int value) |
| | Set 设备的宽度(以像素为单位)。 更多...
|
| |
| void | setOrientation (int value) |
| | Set 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 更多...
|
| |
| void | setResolution (int value) |
| | Set 设备的分辨率,以每英寸像素数为单位。 更多...
|
| |
此类表示打印设备的设置数据。这将在类 Renderer 中使用。
- 参见
- Renderer
◆ PrintDeviceSettingData() [1/3]
| com.foxit.sdk.common.PrintDeviceSettingData.PrintDeviceSettingData |
( |
int |
device_width, |
|
|
int |
device_height, |
|
|
RectF |
device_margin, |
|
|
int |
orientation, |
|
|
int |
resolution, |
|
|
int |
copies |
|
) |
| |
带参数的构造函数。
- 参数
-
| [in] | device_width | 设备的宽度(以像素为单位)。 |
| [in] | device_height | 设备的高度(以像素为单位)。 |
| [in] | device_margin | 设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。 |
| [in] | orientation | 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 |
| [in] | resolution | 设备的分辨率,以每英寸像素数为单位。 |
| [in] | copies | 要打印的份数。此参数仅对PostScript文件有效。 |
◆ PrintDeviceSettingData() [2/3]
| com.foxit.sdk.common.PrintDeviceSettingData.PrintDeviceSettingData |
( |
| ) |
|
构造函数并设置默认值。
默认情况下,A4纸的像素值设置为300 dpi(每英寸点数)。
◆ PrintDeviceSettingData() [3/3]
◆ delete()
| synchronized void com.foxit.sdk.common.PrintDeviceSettingData.delete |
( |
| ) |
|
直接清除C++相关资源。
- 返回
- 无。
- 注解
- 一旦这个接口被调用,这个对象将不能再被使用。
◆ getCopies()
| com.foxit.sdk.common.PrintDeviceSettingData.getCopies |
( |
| ) |
|
Get 要打印的份数。此参数仅对PostScript文件有效。
- 返回
- 要打印的份数。此参数仅对PostScript文件有效。
◆ getDevice_height()
| com.foxit.sdk.common.PrintDeviceSettingData.getDevice_height |
( |
| ) |
|
Get 设备的高度(以像素为单位)。
- 返回
- 设备的高度(以像素为单位)。
◆ getDevice_margin()
| com.foxit.sdk.common.PrintDeviceSettingData.getDevice_margin |
( |
| ) |
|
Get 设备的页边距。
- 注解
- 此值不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。该值不应为负数。
- 返回
- 设备的页边距。
◆ getDevice_width()
| com.foxit.sdk.common.PrintDeviceSettingData.getDevice_width |
( |
| ) |
|
Get 设备的宽度(以像素为单位)。
- 返回
- 设备的宽度(以像素为单位)。
◆ getOrientation()
| com.foxit.sdk.common.PrintDeviceSettingData.getOrientation |
( |
| ) |
|
◆ getResolution()
| com.foxit.sdk.common.PrintDeviceSettingData.getResolution |
( |
| ) |
|
Get 设备的分辨率,以每英寸像素数为单位。
- 返回
- 设备的分辨率,以每英寸像素数为单位。
◆ set()
| void com.foxit.sdk.common.PrintDeviceSettingData.set |
( |
int |
device_width, |
|
|
int |
device_height, |
|
|
RectF |
device_margin, |
|
|
int |
orientation, |
|
|
int |
resolution, |
|
|
int |
copies |
|
) |
| |
设置值。
- 参数
-
| [in] | device_width | 设备的宽度(以像素为单位)。 |
| [in] | device_height | 设备的高度(以像素为单位)。 |
| [in] | device_margin | 设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。 |
| [in] | orientation | 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 |
| [in] | resolution | 设备的分辨率,以每英寸像素数为单位。 |
| [in] | copies | 要打印的份数。此参数仅对PostScript文件有效。 |
- 返回
- 无。
◆ setCopies()
| com.foxit.sdk.common.PrintDeviceSettingData.setCopies |
( |
int |
value | ) |
|
Set 要打印的份数。此参数仅对PostScript文件有效。
- 参数
-
| [in] | value | 要打印的份数。此参数仅对PostScript文件有效。 |
- 返回
- None.
◆ setDevice_height()
| com.foxit.sdk.common.PrintDeviceSettingData.setDevice_height |
( |
int |
value | ) |
|
Set 设备的高度(以像素为单位)。
- 参数
-
- 返回
- None.
◆ setDevice_margin()
| com.foxit.sdk.common.PrintDeviceSettingData.setDevice_margin |
( |
RectF |
value | ) |
|
Set 设备的页边距。
- 注解
- 此值不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。该值不应为负数。
- 参数
-
- 返回
- None.
◆ setDevice_width()
| com.foxit.sdk.common.PrintDeviceSettingData.setDevice_width |
( |
int |
value | ) |
|
Set 设备的宽度(以像素为单位)。
- 参数
-
- 返回
- None.
◆ setOrientation()
| com.foxit.sdk.common.PrintDeviceSettingData.setOrientation |
( |
int |
value | ) |
|
◆ setResolution()
| com.foxit.sdk.common.PrintDeviceSettingData.setResolution |
( |
int |
value | ) |
|
Set 设备的分辨率,以每英寸像素数为单位。
- 参数
-
| [in] | value | 设备的分辨率,以每英寸像素数为单位。 |
- 返回
- None.