Ejemplo n.º 1
0
        internal static string ToSerializedValue(this ExposureLevel value)
        {
            switch (value)
            {
            case ExposureLevel.UnderExposure:
                return("UnderExposure");

            case ExposureLevel.GoodExposure:
                return("GoodExposure");

            case ExposureLevel.OverExposure:
                return("OverExposure");
            }
            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the Exposure class.
 /// </summary>
 /// <param name="exposureLevel">An enum value indicating level of
 /// exposure. Possible values include: 'UnderExposure', 'GoodExposure',
 /// 'OverExposure'</param>
 /// <param name="value">A number indicating level of exposure level
 /// ranging from 0 to 1. [0, 0.25) is under exposure. [0.25, 0.75) is
 /// good exposure. [0.75, 1] is over exposure.</param>
 public Exposure(ExposureLevel exposureLevel = default(ExposureLevel), double value = default(double))
 {
     ExposureLevel = exposureLevel;
     Value         = value;
     CustomInit();
 }