Camera
Overview
Camera is a class in Aspose.Slides FOSS for Java.
Inherits from: ICamera.
Represents 3D camera settings.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
cameraType | CameraPresetType | Read | Property gets or sets the camera’s preset type |
fieldOfViewAngle | double | Read | Property gets or sets the camera’s field of view angle |
zoom | double | Read | Property gets or sets the camera’s zoom factor |
rotation | double[] | Read | Property gets or sets the camera’s rotation as [latitude, longitude, revolution] |
Methods
| Signature | Description |
|---|---|
Camera(scene3d: Element, saveCallback: Runnable) | Creates a new Camera backed by the given scene3d element. |
getCameraType() → CameraPresetType | Returns the current preset type of the camera |
setCameraType(value: CameraPresetType) | Sets the camera’s preset type to the specified value |
getFieldOfViewAngle() → double | Returns the camera’s field of view angle in degrees |
setFieldOfViewAngle(value: double) | Sets the camera’s field of view angle to the given value |
getZoom() → double | Returns the current zoom factor of the camera |
setZoom(value: double) | Sets the camera’s zoom factor to the specified value |
setRotation(latitude: double, longitude: double, revolution: double) | Sets the camera’s latitude, longitude, and revolution rotation angles |
getRotation() → double[] | Returns an array containing latitude, longitude, and revolution angles |