public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { ColorProviderBGMYR s = null != o ? (ColorProviderBGMYR)o : new ColorProviderBGMYR(); info.GetBaseValueEmbedded(s, typeof(ColorProviderBase), parent); return(s); }
public static ColorProviderBGMYR NewFromColorBelowAboveInvalidAndTransparency(NamedColor colorBelow, NamedColor colorAbove, NamedColor colorInvalid, double transparency) { var result = new ColorProviderBGMYR(); result._colorBelow = colorBelow; result._cachedGdiColorBelow = colorBelow; result._colorAbove = colorAbove; result._cachedGdiColorAbove = colorAbove; result._colorInvalid = colorInvalid; result._cachedGdiColorInvalid = colorInvalid; result._alphaChannel = GetAlphaFromTransparency(transparency); return result; }
public static ColorProviderBGMYR NewFromColorBelowAboveInvalidAndTransparency(NamedColor colorBelow, NamedColor colorAbove, NamedColor colorInvalid, double transparency) { var result = new ColorProviderBGMYR { _colorBelow = colorBelow, _cachedGdiColorBelow = colorBelow, _colorAbove = colorAbove, _cachedGdiColorAbove = colorAbove, _colorInvalid = colorInvalid, _cachedGdiColorInvalid = colorInvalid, _alphaChannel = GetAlphaFromTransparency(transparency) }; return(result); }