public RectD(PointD location, SizeD size) { this.Left = location.Left; this.Top = location.Top; this.Width = size.Width; this.Height = size.Height; }
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); }