public static void RenderBrailleToTextFile(BrailleScreen Source, StreamWriter Target, Boolean EchoOff = false) { try { CondVox("Rendering image to text file...", EchoOff); String[] Container = new String[Source.Height / 4]; Source.Render(ref Container); foreach (String x in Container) { Target.WriteLine(x); } CondWait(500, EchoOff); CondVox("Render complete!", EchoOff); } catch (Exception e) { CondVox("Error occured while trying to render an image to file.", EchoOff); CondVox(e, EchoOff); CondThrow(e, EchoOff); } }
public static String[] RenderBrailleToTextFile(BrailleScreen Source, StreamWriter Target, Boolean EchoOff = false) { String[] Container = new String[Source.Height / 4]; try { Source.Render(ref Container); foreach (String x in Container) { Target.WriteLine(x); } CondWait(500, EchoOff); CondVox(Localization.Get("ok_render"), EchoOff); return(Container); } catch (Exception e) { CondVox(Localization.Get("error_renderfail"), EchoOff, MessageBoxIcon.Error); CondVox(e, EchoOff, MessageBoxIcon.Error); CondThrow(e, EchoOff); } return(Container); }