how to remove the border from image copied from Clipboard

how to remove the border from image copied from Clipboard

Anonymous
Not applicable
11,602 Views
4 Replies
Message 1 of 5

how to remove the border from image copied from Clipboard

Anonymous
Not applicable

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("_pasteclip 767, 95 ");

 

This copies my image to the drawing but has a black border around it.

 

Know you can set OleFrame to zero but unsure of the syntax in my command to set this.

 

How can I add the image to my drawing without the border?

 

 

0 Likes
Accepted solutions (2)
11,603 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Accepted solution

Try typing imageframe in command box change from 0 to 1. That might do it

Message 3 of 5

tboehler
Collaborator
Collaborator
Accepted solution

OLEFRAME is the command. 

Message 4 of 5

Johanna_Esteban
Advisor
Advisor

Hello @Anonymous, 

 

You can select the image, go to properties and choose for the white color, but not "white", but the white of the true color tab (second) and use the 255, 255, 255. This does not remove the border, but it will not be visible in the print.

You can use IMAGECLIP, to select what you really need from the image.

 

Regards,

 

JohannaImage - True color - 1.JPGImage - True color - 2.JPG



Johanna Esteban

EESignature


Autodesk Expert Elite | Autodesk Certified Professional | AutoCAD Customer Council (Beta Tester for Windows & Mac)

¿Te ha parecido útil este post? ¡Dame Kudos! 😉
Si ha sido resuelta tu inquietud, selecciona 'Marcar como solución' para que otros usuarios la encuentren fácilmente.

Message 5 of 5

Anonymous
Not applicable

Change my code to be doc.SendCommand("_oleframe 0 ") before pasteclip which works