예제 #1
0
 /// <summary>
 /// Gets the number of color properties for the current <see cref="ColorSpace"/> instance
 /// </summary>
 /// <param name="color">The <see cref="ColorSpace"/> object</param>
 /// <returns>The number of color properties for the current instance</returns>
 public static int GetPropertyCount(ColorSpace color)
 {
     return((int)color.GetType().GetField("PropertyCount").GetValue(color));
 }
예제 #2
0
 /// <summary>
 /// Gets the "Friendly Name" of the current <see cref="ColorSpace"/> instance
 /// </summary>
 /// <param name="color">The <see cref="ColorSpace"/> object</param>
 /// <returns>Friendly name string</returns>
 public static string GetFriendlyName(ColorSpace color)
 {
     return(color.GetType().GetField("FriendlyName").GetValue(color) as string);
 }