예제 #1
0
        /// <summary>
        /// Compares this colorspace with another for their equality of values
        /// </summary>
        /// <param name="obj">The colorspace to compare to</param>
        /// <returns>True if they are the same, false otherwise</returns>
        public override bool Equals(object obj)
        {
            ColorspaceGray c = obj as ColorspaceGray;

            if ((object)c == null)
            {
                return(base.Equals(obj));
            }
            return(this == c);
        }
예제 #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorGray"/> class
 /// </summary>
 /// <param name="G">Value for the Gray channel</param>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorGray(double G, ColorspaceGray colorspace)
     : base(colorspace, G)
 {
 }
예제 #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorGray"/> class
 /// </summary>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorGray(ColorspaceGray colorspace)
     : base(colorspace, 0)
 {
 }