Exemple #1
0
        /// <summary>
        /// Creates a new instance of the <see cref="ConversionCreator"/> class
        /// </summary>
        /// <param name="parent">The parent <see cref="ConversionCreator"/></param>
        /// /// <param name="isLast">States if the output color is the last color</param>
        /// <param name="inColor">The input color</param>
        /// <param name="outColor">The output color</param>
        protected ConversionCreator(ConversionCreator parent, Color inColor, Color outColor, bool isLast)
            : base(parent.ILG)
        {
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }
            if (inColor == null)
            {
                throw new ArgumentNullException(nameof(inColor));
            }
            if (outColor == null)
            {
                throw new ArgumentNullException(nameof(outColor));
            }

            Data          = parent.Data;
            InColor       = inColor;
            OutColor      = outColor;
            base.IsFirstG = false;
            base.IsLastG  = isLast;
            IsTempVar1    = !parent.IsTempVar1;
        }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="ConversionCreator_Color"/> class
 /// </summary>
 /// <param name="parent">The parent <see cref="ConversionCreator"/></param>
 /// <param name="isLast">States if the output color is the last color</param>
 /// <param name="inColor">The input color</param>
 /// <param name="outColor">The output color</param>
 public ConversionCreator_Color(ConversionCreator parent, Color inColor, Color outColor, bool isLast)
     : base(parent, inColor, outColor, isLast)
 {
 }