public AsciiPaintEventArgs(AsciiGraphics graphics, Rectangle clipRect) { Graphics = graphics; ClipRectangle = clipRect; }
public static AsciiGraphics FromUnManagedConsole() { var fromUnManagedConsole = new AsciiGraphics(new UnManagedConsoleRenderSurface()); return fromUnManagedConsole; }
public void Initialize() { IsRunnig = false; buffer = new Image(100, 50); bufferRender = AsciiGraphics.FromCharImage(buffer); dispRender = AsciiGraphics.FromUnManagedConsole(); bufferRender.Clear(); }
public static AsciiGraphics FromCharImage(Image image) { var fromCharImage = new AsciiGraphics(new ImageRenderSurface(image)); return fromCharImage; }
public void Render(LoopState state, AsciiGraphics g) { ax = /*x;//*/ (x - lastX) * state.Interpolation + lastX; ay = /*y;//*/ (y - lastY) * state.Interpolation + lastY; Debug.WriteLine("ay,ay - {0},{1}", ax, ay); g.DrawPoint(new AsciiPen('O', AsciiColors.Red), new Point((uint)ax, (uint)ay)); }