Пример #1
0
 public static ColorRGBA I8ToColor(byte v)
 {
     return(ColorRGBA.FromIntensityAlpha(v, 0xFF));
 }
Пример #2
0
 public static byte ColorToI8(ColorRGBA c)
 {
     return(c.Intensity());
 }
Пример #3
0
 public static byte ColorToIA4(ColorRGBA c)
 {
     return((byte)(Bits8To4[c.Intensity()] | (Bits8To4[c.Alpha] << 4)));
 }
Пример #4
0
 public static ColorRGBA IA4ToColor(byte v)
 {
     return(ColorRGBA.FromIntensityAlpha(Bits4To8[v & 0x0F], Bits4To8[v >> 4]));
 }
Пример #5
0
 public static byte ColorToI4(ColorRGBA c)
 {
     return(Bits8To4[c.Intensity()]);
 }
Пример #6
0
 public static ColorRGBA I4ToColor(byte v)
 {
     return(ColorRGBA.FromIntensityAlpha(Bits4To8[v], 0xFF));
 }
Пример #7
0
 protected override ColorRGBA TrimColor(ColorRGBA color)
 {
     throw new InvalidOperationException();
 }