Message 1 of 2
How to resize image after pasteclip command

Not applicable
06-01-2018
02:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code to paste an image from the clipboard:
AcadDocument doc = acadApp.Documents.Open(filePath, false);
doc.Activate();
Clipboard.SetImage(imagePath);
doc.SendCommand("_oleframe 0 ");
doc.SendCommand("_pasteclip 767, 95 ");
Issue I am having is that if resize image down before copy badly affects pixilation of my image, however, if clip the image on the drawing after pasting the image is OK, however, I need do do this via a command so can do this through code using doc.SendCommand, is there a way for me to achieve this?