/// <summary> /// Add a new entry for the given colour, /// if needed. Return true if the given /// colour differs from the current colour, /// and update the current colour. /// </summary> public bool AddColorTransparency(Color color, int transparency) { int trgb = ObjExportUtil.ColorTransparencyToInt(color, transparency); if (!ContainsKey(trgb)) { this[trgb] = Count; } bool rc = !_current.Equals(trgb); _current = trgb; return(rc); }
public ColorTransparencyLookup() { _current = ObjExportUtil.ColorTransparencyToInt( Command.DefaultColor, 0); }