Camera#

class DockingCamera.Camera#

A camera from Docking Camera (KURS), on an onboard camera part or a docking port.

part: SpaceCenter.Part#

Get the part containing this camera.

Attribute:

Read-only, cannot be set

image(format?: StdLib.ImageFormat, quality?: number): string#

The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started.

Parameters:
  • format – The format of the image. Defaults to StdLib.ImageFormat.png.

  • quality – The quality of a JPEG image, from 1 to 100. Defaults to 75.

Returns:

The image data.

Note

The camera is switched on by setting the IsEnabled field of its PartCameraModule or DockingCameraModule to True, which also opens the camera window.