Exemple #1
0
 /// <summary>
 /// Helper extension method to get <see cref="ConversionMetadataKeys.WhitePoint" />
 /// </summary>
 public static XYZColor GetWhitePointRequired(this IConversionMetadata node)
 => node.GetWhitePoint() ?? throw new MissingConversionMetadataException("White point is not specified, but is required for the conversion.", ConversionMetadataKeys.WhitePoint);
Exemple #2
0
 /// <summary>
 /// Helper extension method to get <see cref="ConversionMetadataKeys.WhitePoint" /> as Key-Value pair.
 /// </summary>
 public static KeyValuePair <string, object> GetWhitePointItem(this IConversionMetadata node)
 => new KeyValuePair <string, object>(ConversionMetadataKeys.WhitePoint, node.GetWhitePoint());