예제 #1
0
 public PositionedImage(int x, int y, ImageToPrint image)
 {
     X     = x;
     BackX = Page.WIDTH - x - image.Width;
     Y     = y;
     BackY = Y;
     Image = image;
 }
예제 #2
0
 public void Add(ImageToPrint image)
 {
     if (_xOffset + image.Width > WIDTH)
     {
         _xOffset  = 75;
         _yOffset += image.Height;
     }
     _images.Add(new PositionedImage(_xOffset, _yOffset, image));
     _xOffset += image.Width;
 }
예제 #3
0
 public bool CanAdd(ImageToPrint image)
 => _xOffset + image.Width < WIDTH ||
 _yOffset + image.Height * 2 < HEIGHT;