public void pnlPreview_Paint(object sender, PaintEventArgs e) { Rectangle rect = new Rectangle(0, 0, pnlPreview.Width, pnlPreview.Height); GUIUtilities.CalcDestRect(m_OriginalImage.Size, ref rect); m_OriginalImage.Draw(e.Graphics, rect); }
public override void DrawImage(MemoryImage image, PointF[] destinationPoints, RectangleF sourceRect, ImageAttributes attributes = null) { image.Draw(gr, destinationPoints, sourceRect, attributes); }
public override void DrawImage(MemoryImage image, RectangleF destination, ImageAttributes attributes = null) { image.Draw(gr, destination, attributes); }