Camera

Inheritance: java.lang.Object, com.aspose.slides.PVIObject

All Implemented Interfaces: com.aspose.slides.ICamera

public final class Camera extends PVIObject implements ICamera

Represents Camera.

Methods

MethodDescription
getVersion()
getCameraType()Camera type.
setCameraType(int value)Camera type.
getFieldOfViewAngle()Camera FOV (0-180 deg, field of View).
setFieldOfViewAngle(float value)Camera FOV (0-180 deg, field of View).
getZoom()Camera zoom (positive value in percentage).
setZoom(float value)Camera zoom (positive value in percentage).
setRotation(float latitude, float longitude, float revolution)A rotation is defined through the use of a latitude coordinate, a longitude coordinate, and a revolution about the axis as the latitude and longitude coordinates.
getRotation()A rotation is defined through the use of a latitude coordinate, a longitude coordinate, and a revolution about the axis as the latitude and longitude coordinates.

getVersion()

public long getVersion()

Version. Read-only long.

Returns: long

getCameraType()

public final int getCameraType()

Camera type. Read/write CameraPresetType.

Returns: int

setCameraType(int value)

public final void setCameraType(int value)

Camera type. Read/write CameraPresetType.

Parameters:

ParameterTypeDescription
valueint

getFieldOfViewAngle()

public final float getFieldOfViewAngle()

Camera FOV (0-180 deg, field of View). Read/write float.

Returns: float

setFieldOfViewAngle(float value)

public final void setFieldOfViewAngle(float value)

Camera FOV (0-180 deg, field of View). Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getZoom()

public final float getZoom()

Camera zoom (positive value in percentage). Read/write float.

Returns: float

setZoom(float value)

public final void setZoom(float value)

Camera zoom (positive value in percentage). Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

setRotation(float latitude, float longitude, float revolution)

public final void setRotation(float latitude, float longitude, float revolution)

A rotation is defined through the use of a latitude coordinate, a longitude coordinate, and a revolution about the axis as the latitude and longitude coordinates. If any of coordinate value is Float.NaN, all rotation is undefined.

Parameters:

ParameterTypeDescription
latitudefloat
longitudefloat
revolutionfloat

getRotation()

public final float[] getRotation()

A rotation is defined through the use of a latitude coordinate, a longitude coordinate, and a revolution about the axis as the latitude and longitude coordinates. first element in return array - latitude, second - longitude, third - revolution. Returns null if no rotation defined.

Returns: float[]