cart: empty [ Login ]

CreateFromColorIndex with index 0

1 
John
3/27/2019 6:46 PM
Hi, The following code: DxfColor color = new DxfColor(WW.Cad.Model.Color.CreateFromColorIndex(WW.Cad.Model.ColorType.ByColorIndex, aciIndex)); when aciIndex == 0 results in a Color ByBlock. How do I create a DxfColor with index 0 i.e. Black? Thanks, John
Wout
3/27/2019 8:19 PM
Hi, The indexed color black does not exist, there is the default color (7), for which you can use Color.Default. This color becomes black if the background is white, and white if the blackground is black. - Wout
1