コード例 #1
0
        public PageGridGeometry(NewspaperPage p) : base(p)
        {
            var fullWidth  = (PAPER_WIDTH - left - right + gap);
            var fullHeight = (PAPER_HEIGHT - top - bottom + gap);

            cellWidth  = fullWidth / p.Grid.ColumnsCount;
            cellHeight = fullHeight / p.Grid.RowCount;
        }
コード例 #2
0
 public PageGeometry(NewspaperPage p)
 {
     gap    = p.Grid.Gap;
     top    = p.Grid.MarginTop;
     bottom = p.Grid.MarginBottom;
     if (p.Number % 2 == 0)
     {
         left  = p.Grid.MarginOutside;
         right = p.Grid.MarginInside;
     }
     else
     {
         left  = p.Grid.MarginInside;
         right = p.Grid.MarginOutside;
     }
 }
コード例 #3
0
 public PageClassifiedGeometry(NewspaperPage p) : base(p)
 {
     frameHeight     = PAPER_HEIGHT - top - bottom;
     clasColumnWidth = (PAPER_WIDTH - left - right - gap * (p.Grid.ColumnsCount - 1)) / p.Grid.ColumnsCount;
 }