public void SaveSymbolToFile(string fileName, Symbol symbol) { TextWriter tw = new StreamWriter(fileName, false); tw.Write(symbol.ToString()); tw.Close(); }
public void ExportSymbolToBitmap(string fileName, Symbol symbol, ImageFormat imageFormat) { if (this.IsBitmap(symbol.ToString())) { symbol.GetZoomedImage(1, false).Save(fileName, imageFormat); } else { symbol.GetVectorRendering(DefaultColorTable).Save(fileName, imageFormat); } }