Exemplo n.º 1
0
            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;
            }
Exemplo n.º 2
0
 public RGBA128F(RGBP128F color)
 {
     this      = default;
     this.RGBA = color.RGBP;
     ApplyUnpremul(ref this.RGBA);
 }