public void SetProperty(string propertyId, int value, CameraPropertyFlags flags) { PropertyValue propValue; if (!Properties.TryGetValue(propertyId, out propValue)) { propValue = new PropertyValue(); Properties[propertyId] = propValue; } propValue.Value = value; propValue.Flags = flags; }
public void ResetToDefault() { Value = Default; if (Capabilities.HasFlag(CameraPropertyFlags.Automatic)) { Flags = CameraPropertyFlags.Automatic; } else { Flags = CameraPropertyFlags.Manual; } Flags &= Capabilities; }