public void MultiplePixel([FromBody] List <SinglePixelRequest> request)
 {
     foreach (var singleRequest in request)
     {
         Drawer.Draw(BuildDTO(singleRequest));
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void SinglePixel([FromBody] SinglePixelRequest request)
 {
     Drawer.Draw(BuildDTO(request));
 }