コード例 #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)
 {
 }