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); }
public bool AddColor(IPixColor color) { return(Leptonica5Pix.pixcmapAddColor(HandleRef, color.Red, color.Green, color.Blue) == 0); }