コード例 #1
0
 public static bool ValidateRGBA1(byte r, byte g, byte b, byte a)
 {
     return(ValueBetweenByteTests.Between(a, RGBMin, RGBMax) &&
            ValueBetweenByteTests.Between(r, RGBMin, RGBMax) &&
            ValueBetweenByteTests.Between(g, RGBMin, RGBMax) &&
            ValueBetweenByteTests.Between(b, RGBMin, RGBMax));
 }
コード例 #2
0
 public static bool ValidateCYMKA1(byte c, byte y, byte m, byte k, byte a)
 {
     return(ValueBetweenByteTests.Between(a, CYMKMin, CYMKMax) &&
            ValueBetweenByteTests.Between(c, CYMKMin, CYMKMax) &&
            ValueBetweenByteTests.Between(y, CYMKMin, CYMKMax) &&
            ValueBetweenByteTests.Between(m, CYMKMin, CYMKMax) &&
            ValueBetweenByteTests.Between(k, CYMKMin, CYMKMax));
 }