Exemple #1
0
 public static byte ColorToIA4(ColorRGBA c)
 {
     return((byte)(Bits8To4[c.Intensity()] | (Bits8To4[c.a] << 4)));
 }
Exemple #2
0
 public static ColorRGBA IA4ToColor(byte v)
 {
     return(ColorRGBA.FromIntensityAlpha(Bits4To8[v & 0x0F], Bits4To8[v >> 4]));
 }
Exemple #3
0
 public static ColorRGBA I4ToColor(byte v)
 {
     return(ColorRGBA.FromIntensityAlpha(Bits4To8[v], 0xFF));
 }
Exemple #4
0
 public static byte ColorToI4(ColorRGBA c)
 {
     return(Bits8To4[c.Intensity()]);
 }
 protected override ColorRGBA TrimColor(ColorRGBA color)
 {
     throw new InvalidOperationException();
 }