The two settings beside the zoom operations: image stabilisation and digital zoom. This is one of the 7 pages of the settings reference, which names every setting. Zoom and stabilisation shows each at work in Studio, MCP, the CLI and Slate.
Read and write one with its typed getter and setter, or with setControl by id. A camera offers only some values of each: getCapabilities().controls lists them now. A setter refuses a value the camera does not offer with CameraRefusedError before sending anything; a getter throws CameraUnsupportedError when the setting is absent or does not apply in the current mode.
| Setting | Id | Getter and setter |
|---|---|---|
| Image stabilisation | imageStabilization | getImageStabilization setImageStabilization |
| Digital zoom | digitalZoom | getDigitalZoom setDigitalZoom |
Image stabilisation
Steadies the picture against camera shake, in the lens, in the body, or both, as the camera's menu offers it.
Lens and in-body stabilisation together, as each body's menu offers it: Off, On, and a brand's own modes.
| Id | imageStabilization, for setControl and getCapabilities().controls.imageStabilization |
| Value type | ImageStabilization |
| How to use it | Zoom and stabilisation: Image stabilisation |
| Search words | image stabilisation, image stabilization, stabilization, stabilisation, IBIS, SteadyShot, steady shot, vibration reduction, VR, lens IS |
Values 6 named values. A camera offers only some of them: getCapabilities().controls.imageStabilization.allowedValues lists which, right now.
Off On Same as photo Sports Active Dynamic Active
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonLensIsSetting (0xd295) |
| Nikon | NikonVibrationReduction (0xd138), NikonMovieVibrationReduction (0xd1f9) |
| Sony | ImageStabilizationSteadyShot (0xd0d9), MovieImageStabilizationSteadyShot (0xd0da) |
getImageStabilization
getImageStabilization(): Promise<ImageStabilization> · MCP camera_get_image_stabilization · CLI darkgrade camera get-image-stabilization
setImageStabilization
MCP camera_set_image_stabilization · CLI darkgrade camera set-image-stabilization
setImageStabilization(
value: ImageStabilization,
): Promise<ImageStabilization>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Digital zoom
Zooming past the lens inside the camera: Clear Image Zoom, Hi-Res Zoom, digital teleconverters.
How far zoom reaches past the optics: Off is optical only.
| Id | digitalZoom, for setControl and getCapabilities().controls.digitalZoom |
| Value type | DigitalZoom |
| How to use it | Zoom and stabilisation: Digital zoom |
| Search words | zoom setting, zoomSetting, zoom mode, zoomMode, zoom range, Hi-Res Zoom, digital teleconverter, clear image zoom, movie digital zoom |
Values 6 named values. A camera offers only some of them: getCapabilities().controls.digitalZoom.allowedValues lists which, right now.
Hi-Res Zoom Off Clear Image Zoom Digital Zoom Digital Zoom 2x Digital Zoom 4x
How the names are chosen
How the names are chosen
Each brand's own property and value, and the name Slate gives it:
| Vendor value | Slate value |
|---|---|
ZoomSetting Optical Zoom Only | Off |
ZoomSetting Clear Image Zoom | Clear Image Zoom |
ZoomSetting Digital Zoom | Digital Zoom |
NikonHiResZoom OFF | Off |
NikonHiResZoom ON | Hi-Res Zoom |
CanonDigitalZoom x1.0 | Off |
CanonDigitalZoom x2.0 | Digital Zoom 2x |
CanonDigitalZoom x4.0 | Digital Zoom 4x |
Protocol properties
Protocol properties
The properties Slate reads and writes for it, by brand.
| Brand | Properties |
|---|---|
| Canon | CanonDigitalZoom (0xd243) |
| Nikon | NikonHiResZoom (0x1d033) |
| Sony | ZoomSetting (0xd25f) |
getDigitalZoom
getDigitalZoom(): Promise<DigitalZoom> · MCP camera_get_digital_zoom · CLI darkgrade camera get-digital-zoom
setDigitalZoom
MCP camera_set_digital_zoom · CLI darkgrade camera set-digital-zoom
setDigitalZoom(value: DigitalZoom): Promise<DigitalZoom>Refuses a value the camera does not offer before sending anything, and resolves to the value read back.
Other settings
How bright the picture is: shutter speed, ISO, aperture and the modes around them.
What a recording is: the photo or video mode, the format, quality and frame rate, and sound.
What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes.
The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile.
How the camera finds and follows a subject: focus mode and area, and subject detection.
The one setting of the live picture: its quality.
Related
The class: constructor, every method, what each returns and throws.
Every setting id with its values, getter, setter and vendor properties.
Every exported type, field by field.
Every error class: when it is thrown and what to do.
Every import path of the package and what it exports.