Camera
Camera
概述
Camera 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:PVIObject、ISlideComponent、IPresentationComponent。
表示相机。
此类提供 2 个用于在 Python 程序中操作相机对象的方法。可用的方法包括:get_rotation、set_rotation。在安装 Aspose.Slides FOSS for Python 软件包后,所有公共成员对任何 Python 应用程序均可访问。属性:as_i_presentation_component、camera_type、field_of_view_angle、presentation、slide、zoom。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
camera_type | CameraPresetType | 读写 | 相机类型。 |
field_of_view_angle | float | 读写 | 相机 FOV (0-180 度,视野)。 |
zoom | float | 读写 | 相机变焦(正值,以百分比表示)。 |
as_i_presentation_component | IPresentationComponent | 读取 | 允许获取基础 IPresentationComponent 接口。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
presentation | IPresentation | 读取 | 获取演示。 |
方法
| 签名 | 描述 |
|---|---|
set_rotation(latitude, longitude, revolution) | 设置旋转值。 |
get_rotation() → list[float] | 返回旋转。 |