继承自 Object .
|
| | PrintDeviceSettingData (int device_width, int device_height, RectF device_margin, OrientationFlag orientation, int resolution, uint32 copies) |
| | 带参数的构造函数。 更多...
|
| |
| | PrintDeviceSettingData () |
| | 构造函数并设置默认值。 更多...
|
| |
| | PrintDeviceSettingData (const PrintDeviceSettingData &settings) |
| | 带另一个打印设备设置数据对象的构造函数。 更多...
|
| |
| PrintDeviceSettingData & | operator= (const PrintDeviceSettingData &settings) |
| | 赋值操作符。 更多...
|
| |
| void | Set (int device_width, int device_height, RectF device_margin, OrientationFlag orientation, int resolution, uint32 copies) |
| | 设置值。 更多...
|
| |
此类表示打印设备的设置数据。这将在类 Renderer 中使用。
- 参见
- Renderer
◆ OrientationFlag
用于指定打印机方向的枚举。
此枚举的值应单独使用。
| 枚举值 |
|---|
| e_Portrait | 打印的纵向方向。
|
| e_Landscape | 打印的横向方向。
|
◆ PrintDeviceSettingData() [1/3]
| foxit::common::PrintDeviceSettingData::PrintDeviceSettingData |
( |
int |
device_width, |
|
|
int |
device_height, |
|
|
RectF |
device_margin, |
|
|
OrientationFlag |
orientation, |
|
|
int |
resolution, |
|
|
uint32 |
copies |
|
) |
| |
|
inlineexplicit |
带参数的构造函数。
- 参数
-
| [in] | device_width | 设备的宽度(以像素为单位)。 |
| [in] | device_height | 设备的高度(以像素为单位)。 |
| [in] | device_margin | 设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。 |
| [in] | orientation | 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 |
| [in] | resolution | 设备的分辨率,以每英寸像素数为单位。 |
| [in] | copies | 要打印的份数。此参数仅对PostScript文件有效。 |
◆ PrintDeviceSettingData() [2/3]
| foxit::common::PrintDeviceSettingData::PrintDeviceSettingData |
( |
| ) |
|
|
inline |
构造函数并设置默认值。
默认情况下,A4纸的像素值设置为300 dpi(每英寸点数)。
◆ PrintDeviceSettingData() [3/3]
◆ operator=()
赋值操作符。
- 参数
-
| [in] | settings | 另一个打印设备设置数据对象,其值将赋给当前对象。 |
- 返回
- 对当前对象本身的引用。
◆ Set()
| void foxit::common::PrintDeviceSettingData::Set |
( |
int |
device_width, |
|
|
int |
device_height, |
|
|
RectF |
device_margin, |
|
|
OrientationFlag |
orientation, |
|
|
int |
resolution, |
|
|
uint32 |
copies |
|
) |
| |
|
inline |
设置值。
- 参数
-
| [in] | device_width | 设备的宽度(以像素为单位)。 |
| [in] | device_height | 设备的高度(以像素为单位)。 |
| [in] | device_margin | 设备的页边距。它不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。 |
| [in] | orientation | 方向标志。请参考从 OrientationFlag::e_Portrait 开始的值, 这应该是其中的一个值。 |
| [in] | resolution | 设备的分辨率,以每英寸像素数为单位。 |
| [in] | copies | 要打印的份数。此参数仅对PostScript文件有效。 |
- 返回
- 无。
◆ device_margin
| RectF foxit::common::PrintDeviceSettingData::device_margin |
设备的页边距。
- 注解
- 此值不表示矩形。它只定义设备的左边距、下边距、 右边距和上边距。该值不应为负数。