Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Metafile emfMetaFile = new Metafile(filePath);
  2.  
  3. Bitmap transferBmp = new Bitmap(500, 500);
  4.  
  5. //some calculation, so the emf File keeps it proportions when it gets drawn into the PictureBox
  6.  
  7. using (var g = Graphics.FromImage(transferBmp))
  8. {
  9. g.DrawImage(emfMetaFile, 30, 30, calculatedWidth, calculatedHeight);
  10. }
  11.  
  12. pbDrawing.Image = transferBmp;
Add Comment
Please, Sign In to add comment