Skip to main content

CameraSettings

record · sealed thread-safe
namespace AR51.Net;

public sealed record CameraSettings(double ExposureMicroseconds, double Gain, double Gamma, int Contrast, int Saturation, int GainRed, int GainGreen, int GainBlue, bool Rotate180, bool ExcludedFromTracking);

A camera's image settings. Change values with with and pass the result to ICameraClient.SetSettingsAsync.

How-to

This page is reference (facts only). For a walkthrough with a complete sample, see the Cameras guide.

Properties​

Positional record: set them in the constructor, read them as properties, and copy with changes using with.

PropertyTypeDescription
ExposureMicrosecondsdoubleExposure time, in microseconds.
GaindoubleOverall gain.
GammadoubleGamma correction.
ContrastintContrast.
SaturationintColor saturation.
GainRedintRed gain, for color balance.
GainGreenintGreen gain, for color balance.
GainBlueintBlue gain, for color balance.
Rotate180boolTurn the image upside down, for a camera mounted upside down.
ExcludedFromTrackingboolLeave this camera out of tracking, for example while it is faulty.

See also​

Was this page helpful?