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