.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::DockingCamera Camera ====== .. class:: Camera A camera from Docking Camera (KURS), on an onboard camera part or a docking port. | Base class: :class:`SpaceCenter::Module` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`SpaceCenter::Module`: :func:`name `, :func:`part `, :func:`config `, :func:`field_list `, :func:`event_list `, :func:`action_list ` .. function:: std::string image(StdLib::ImageFormat format = StdLib::ImageFormat::png, int32_t quality = 75) 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. * **quality** -- The quality of a JPEG image, from 1 to 100. :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.