Save DWG as WMF or EMF Black Background

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
grazer
Posts: 2
Joined: 19 Sep 2008, 06:16

Save DWG as WMF or EMF Black Background

Post by grazer » 19 Sep 2008, 06:27

Hi,

I want to be able to Save DWG as WMF or EMF and keep the black background. There are a lot of white lines and text in the DWG, so the black background is critical.
However when saved as WMF or EMF, the background is white.
When saving as a BMP, the image displays correctly.

Regards
Andrew

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Save DWG as WMF or EMF Black Background

Post by support » 19 Sep 2008, 14:54

Hello Andrew,

We recommend to use the following line before saving as WMF/EMF file format:

Code: Select all

this.cadImage.DefaultColor = Color.Black;
and the following after:

Code: Select all

this.cadImage.DefaultColor = CADImport.CADConst.clNone;
DefaultColor sets the color for entities which have white color in AutoCAD™ DXF/DWG - this color is default for all elements and it is white in AutoCAD™ model mode and black in AutoCAD™ layouts. It is black when printing from AutoCAD™.

If the color is clNone entities take black color on the white background and vice versa.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply