Esempio n. 1
0
        public RectD(PointD location, SizeD size)
        {
            this.Left = location.X;
            this.Top  = location.Y;

            this.Width  = size.Width;
            this.Height = size.Height;
        }
Esempio n. 2
0
        public static BitmapBuffer Overlay(BitmapBuffer bmp, BitmapBuffer overlay, BitmapBufferEx.PointD location)
        {
            BitmapBuffer result = bmp.Clone();
            var          size   = new  BitmapBufferEx.SizeD(overlay.PixelWidth, overlay.PixelHeight);

            result.Blit(new BitmapBufferEx.RectD(location, size), overlay,
                        new RectD(new BitmapBufferEx.PointD(0, 0), size),
                        BitmapBufferExtensions.BlendMode.Multiply);
            return(result);
        }