Table of Contents

Method Map

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Map(CadPlotStyleTable, int)

Gets the colour an object of a colour plots in: black with Monochrome; with Grayscale the grey of its brightness, 0.299 red, 0.587 green and 0.114 blue, so pure red plots #4C4C4C, green #969696 and blue #1D1D1D; with None its own. White, and colours within 2 per cent of it, plot black with each.

public static int Map(CadPlotStyleTable table, int rgb)

Parameters

table CadPlotStyleTable

The table.

rgb int

The colour as 0xRRGGBB.

Returns

int

The colour plotted, as 0xRRGGBB.