示例#1
0
 public bool Equals(IPixColor other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(red == other.Red && blue == other.Blue && green == other.Green && alpha == other.Alpha);
 }
示例#2
0
 public bool AddColor(IPixColor color)
 {
     return(Leptonica5Pix.pixcmapAddColor(HandleRef, color.Red, color.Green, color.Blue) == 0);
 }