DXFExport.ColorToDXF

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Gibbo
Posts: 2
Joined: 27 Oct 2006, 13:32
Location: United Kingdom

DXFExport.ColorToDXF

Post by Gibbo » 27 Oct 2006, 16:04

Hi,
I'm using a the function

DXFExport.ColorToDXF(new System.Drawing.Color(255, 255, 220)

to my surprise it is returning 7!! When I view this with a DXF Viewer instead of being a pale yellow, I get Black!

Any ideas?

Thanks

-----
Gibbo

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

Post by support » 30 Oct 2006, 12:51

Hello Gibbo!

Please try the following line:

Code: Select all

Data.color = DXFExport.ColorToDXF(Color.Yellow);
Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply