public void MultiplePixel([FromBody] List <SinglePixelRequest> request) { foreach (var singleRequest in request) { Drawer.Draw(BuildDTO(singleRequest)); } }
private void PrintPixelFont(BaseFont symbolToPrint, int spaceTopRows, int colSpaceLeft) { foreach (var pixel in symbolToPrint.pixels) { _drawer.Draw(new SinglePixelDTO { Color = pixel.Color, PixelLocation = new PixelLocationDTO { Col = pixel.Col + colSpaceLeft, Row = pixel.Row + spaceTopRows } }); Thread.Sleep(100); } }
public void SinglePixel([FromBody] SinglePixelRequest request) { Drawer.Draw(BuildDTO(request)); }