示例#1
0
            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);
            }
示例#2
0
		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;
		}
示例#3
0
        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);
        }