public PositionedImage(int x, int y, ImageToPrint image) { X = x; BackX = Page.WIDTH - x - image.Width; Y = y; BackY = Y; Image = image; }
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; }
public bool CanAdd(ImageToPrint image) => _xOffset + image.Width < WIDTH || _yOffset + image.Height * 2 < HEIGHT;