Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="CurveSetProcessElement"/> class
 /// </summary>
 /// <param name="CLUTValue">The color lookup table of this element</param>
 public CLUTProcessElement(CLUT CLUTValue)
     : base(MultiProcessElementSignature.CLUT, CLUTValue?.InputChannelCount ?? 1, CLUTValue?.OutputChannelCount ?? 1)
 {
     if (CLUTValue == null)
     {
         throw new ArgumentNullException(nameof(CLUTValue));
     }
     this.CLUTValue = CLUTValue;
 }
Esempio n. 2
0
        /// <summary>
        /// Determines whether the specified <see cref="object"/> is equal to the current <see cref="CLUT"/>.
        /// </summary>
        /// <param name="obj">The <see cref="object"/> to compare with the current <see cref="CLUT"/></param>
        /// <returns>true if the specified <see cref="object"/> is equal to the current <see cref="CLUT"/>; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            CLUT c = obj as CLUT;

            if ((object)c == null)
            {
                return(false);
            }
            return(c == this);
        }