public BGR24 AlphaBlendWith(ARGB32 src, int opacity)
            {
                opacity = opacity * src.A / 255;
                var x = 16384 - opacity;

                var r = (this.R * x + src.R * opacity) / 16384;
                var g = (this.G * x + src.G * opacity) / 16384;
                var b = (this.B * x + src.B * opacity) / 16384;

                return(new BGR24(r, g, b));
            }
Exemple #2
0
 public Luminance32F(ARGB32 color)
 {
     L = _FromRGBA(color.R, color.G, color.B, color.A) * Reciprocal65025;
 }
Exemple #3
0
 public void PutPixel(uint x, uint y, ARGB32 color)
 {
     PutPixel(x, y, color.A, color.R, color.G, color.B);
 }
Exemple #4
0
 public RGBA128F(ARGB32 color) : this()
 {
     RGBA = new XYZA(color.R, color.G, color.B, color.A) / 255f;
 }