.. default-domain:: js .. highlight:: js .. module:: DockingCamera :no-index: Camera ====== .. class:: Camera A camera from Docking Camera (KURS), on an onboard camera part or a docking port. .. method:: getPart() Get the part containing this camera. :Property: Read-only, cannot be set :rtype: :class:`SpaceCenter.Part` .. method:: image([format[, quality]]) The image from the camera, 256 by 256 pixels. Throws an exception if the camera is off or not started. :param format: The format of the image. Defaults to ``StdLib.ImageFormat.png``. :type format: :class:`StdLib.ImageFormat` :param quality: The quality of a JPEG image, from 1 to 100. Defaults to ``75``. :type quality: ``number`` :returns: The image data. :rtype: ``Uint8Array`` .. note:: The camera is switched on by setting the ``IsEnabled`` field of its ``PartCameraModule`` or ``DockingCameraModule`` to ``true``, which also opens the camera window.