Пример #1
0
 public static ScaleMode parseScale(string value)
 {
     return(ParseUtils.ParsePrimitive <ScaleMode>(value, ScaleMode.DownscaleOnly));
 }
Пример #2
0
 public static Color parseColor(string value, Color defaultValue)
 {
     return(ParseUtils.ParseColor(value, defaultValue));
 }
Пример #3
0
 public static string writeColor(Color value)
 {
     return(ParseUtils.SerializeColor(value));
 }
Пример #4
0
 /// <summary>
 /// Returns RotateNoneFlipNone if not a recognized value.
 /// </summary>
 /// <param name="sFlip"></param>
 /// <returns></returns>
 public static RotateFlipType parseFlip(string sFlip)
 {
     return((RotateFlipType)ParseUtils.ParsePrimitive <FlipMode>(sFlip, FlipMode.None));
 }