|
Foxit PDF SDK
|
Public 类型 | |
| enum | GraphicsObjectType { e_GraphicsObjectTypeUnknown = 0, e_GraphicsObjectTypeLayer = 1, e_GraphicsObjectTypePageBlock = 2, e_GraphicsObjectTypeComposite = 3, e_GraphicsObjectTypeSvg = 4, e_GraphicsObjectTypeText = 5, e_GraphicsObjectTypePath = 6, e_GraphicsObjectTypeImage = 7, e_GraphicsObjectTypeVideo = 8 } |
| OFD页面对象类型类型枚举。 更多... | |
| enum | LayerType { e_LayerTypeBackground = 0, e_LayerTypeBody = 1, e_LayerTypeForeground = 2 } |
| OFD页面层类型枚举。 更多... | |
Public 类型 继承自 foxit::ofd::graphics::OFDGraphicsObject | |
| enum | LineCapMode { e_LineCapButt = 0, e_LineCapRound = 1, e_LineCapSquare = 2 } |
| OFD线端点样式枚举。 更多... | |
| enum | LineJoinMode { e_LineJoinMiter = 0, e_LineJoinRound = 1, e_LineJoinBevel = 2 } |
| OFD线条连接样式枚举。 更多... | |
| enum | ObjectType { e_ObjectTypeUnknown = 0, e_ObjectTypePageBlock = 2, e_ObjectTypeComposite = 3, e_ObjectTypeSVG = 4, e_ObjectTypeText = 5, e_ObjectTypePath = 6, e_ObjectTypeImage = 7, e_ObjectTypeVideo = 8 } |
| OFD图元对象类型定义枚举类型. 更多... | |
此类表示和OFD层相关的操作。
OFD页面对象类型类型枚举。
该枚举值应单独使用。
| foxit::ofd::OFDLayer::OFDLayer | ( | const OFDLayer & | other | ) |
构造函数,通过另一个OFD层对象。
| [in] | other | 另一个OFD层对象。 |
| graphics::OFDBlockObject foxit::ofd::OFDLayer::AddBlockObject | ( | ) |
添加图元对象-块对象。
| graphics::OFDCompositeObject foxit::ofd::OFDLayer::AddCompositeObject | ( | ) |
添加图元对象-复合对象。
| graphics::OFDGraphicsObject foxit::ofd::OFDLayer::AddGraphicsObject | ( | GraphicsObjectType | type | ) |
添加图元对象。
| [in] | type | 图元对象类型。请参考从 foxit::ofd::OFDLayer::e_GraphicsObjectTypeLayer 开始的值, 这应该是这些值中的一个。 |
| graphics::OFDImageObject foxit::ofd::OFDLayer::AddImageObject | ( | ) |
添加图元对象-图像对象。
| graphics::OFDPathObject foxit::ofd::OFDLayer::AddPathObject | ( | ) |
添加图元对象-路径对象。
| graphics::OFDTextObject foxit::ofd::OFDLayer::AddTextObject | ( | ) |
添加图元对象-文本对象。
| graphics::OFDVideoObject foxit::ofd::OFDLayer::AddVideoObject | ( | ) |
添加图元对象-视频对象。
| graphics::OFDGraphicsObject foxit::ofd::OFDLayer::GetGraphicsObject | ( | int | index | ) | const |
获取指定索引的图元对象。
| [in] | index | 指定图元对象的索引。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::OFDLayer::GetGraphicsObjectCount 返回。 |
| graphics::OFDGraphicsObject foxit::ofd::OFDLayer::GetGraphicsObjectByID | ( | int | id | ) |
通过ID获取图元对象。
| [in] | id | 图元对象ID。 |
| int foxit::ofd::OFDLayer::GetGraphicsObjectCount | ( | ) | const |
获取图元对象数量。
| int foxit::ofd::OFDLayer::GetGraphicsObjectIndexByName | ( | const String & | name | ) | const |
通过名称获取图元对象索引。
| [in] | name | 图元对象名称。 |
| GraphicsObjectType foxit::ofd::OFDLayer::GetGraphicsObjectType | ( | int | index | ) | const |
获取指定索引的图元对象类型。
| [in] | index | 指定图元对象的索引。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::OFDLayer::GetGraphicsObjectCount 返回。 |
| graphics::OFDBlockObject foxit::ofd::OFDLayer::GetPageBlock | ( | int | index | ) | const |
获取指定索引的页面块对象。
| [in] | index | 指定页面块对象的索引。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::OFDLayer::GetGraphicsObjectCount 返回。 |
| bool foxit::ofd::OFDLayer::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| bool foxit::ofd::OFDLayer::operator != | ( | const OFDLayer & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD层对象。此函数将检查当前对象是否不等于这个对象。 |
赋值操作符。
| [in] | other | 另一个OFD层对象,其值将被赋给当前对象。 |
| bool foxit::ofd::OFDLayer::operator== | ( | const OFDLayer & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD层对象。此函数将检查当前对象是否等于这个对象。 |
| void foxit::ofd::OFDLayer::RemoveAllGraphicsObjects | ( | ) |
删除所有图元对象。
| void foxit::ofd::OFDLayer::RemoveGraphicsObject | ( | int | index | ) |
删除指定索引的图元对象。
| [in] | index | 指定图元对象的索引。有效范围:从0到(count-1)。 count 由函数 foxit::ofd::OFDLayer::GetGraphicsObjectCount 返回。 |
| void foxit::ofd::OFDLayer::SetType | ( | LayerType | type = e_LayerTypeBody | ) |
设置类型
| [in] | type | 类型。请参考从 foxit::ofd::OFDLayer::e_LayerTypeBackground 开始的值, 这应该是这些值中的一个。默认值为 foxit::ofd::OFDLayer::e_LayerTypeBody 。 |