Example #1
0
        public static BitmapBuffer Overlay(BitmapBuffer bmp, BitmapBuffer overlay, PixelFarm.DrawingBuffer.PointD location)
        {
            var result = bmp.Clone();
            var size   = new PixelFarm.DrawingBuffer.SizeD(overlay.PixelWidth, overlay.PixelHeight);

            result.Blit(new PixelFarm.DrawingBuffer.RectD(location, size), overlay,
                        new RectD(new PixelFarm.DrawingBuffer.PointD(0, 0), size),
                        BitmapBufferExtensions.BlendMode.Multiply);
            return(result);
        }
Example #2
0
 public abstract PointD Transform(PointD p);