Camera

Overview

Camera is a class in Aspose.Slides FOSS for Java. Inherits from: ICamera.

Represents 3D camera settings.

Properties

NameTypeAccessDescription
cameraTypeCameraPresetTypeReadProperty gets or sets the camera’s preset type
fieldOfViewAngledoubleReadProperty gets or sets the camera’s field of view angle
zoomdoubleReadProperty gets or sets the camera’s zoom factor
rotationdouble[]ReadProperty gets or sets the camera’s rotation as [latitude, longitude, revolution]

Methods

SignatureDescription
Camera(scene3d: Element, saveCallback: Runnable)Creates a new Camera backed by the given scene3d element.
getCameraType()CameraPresetTypeReturns the current preset type of the camera
setCameraType(value: CameraPresetType)Sets the camera’s preset type to the specified value
getFieldOfViewAngle()doubleReturns 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()doubleReturns 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

See Also