public BGRA32(RGBP128F color) { var c = color.A == 0 ? XYZA.Zero : new XYZA(color.PreRGB / color.A, color.A) * 255f; R = (Byte)c.X; G = (Byte)c.Y; B = (Byte)c.Z; A = (Byte)c.W; }
public RGBA128F(RGBP128F color) { this = default; this.RGBA = color.RGBP; ApplyUnpremul(ref this.RGBA); }