Example #1
0
        /// <summary>
        /// Outsets this rectangle by adding the thickness values and subtacting from the location
        /// </summary>
        /// <param name="thickness"></param>
        /// <returns></returns>
        public PDFRect Outset(PDFThickness thickness)
        {
            PDFRect r = this.Clone();

            r.X -= thickness.Left;
            r.Y -= thickness.Top;

            r.Width  += thickness.Left + thickness.Right;
            r.Height += thickness.Top + thickness.Bottom;

            return(r);
        }
Example #2
0
 public PDFSize Subtract(PDFThickness thickness)
 {
     return(new PDFSize(this.Width - thickness.Left - thickness.Right, this.Height - thickness.Top - thickness.Bottom));
 }