Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Metafile emfMetaFile = new Metafile(filePath);
- Bitmap transferBmp = new Bitmap(500, 500);
- //some calculation, so the emf File keeps it proportions when it gets drawn into the PictureBox
- using (var g = Graphics.FromImage(transferBmp))
- {
- g.DrawImage(emfMetaFile, 30, 30, calculatedWidth, calculatedHeight);
- }
- pbDrawing.Image = transferBmp;
Add Comment
Please, Sign In to add comment