示例#1
0
 /// <summary>
 /// Apply margins in terms of pixels from the edge of the canvas or image
 /// </summary>
 /// <param name="relativeTo"></param>
 /// <param name="left"></param>
 /// <param name="top"></param>
 /// <param name="right"></param>
 /// <param name="bottom"></param>
 public WatermarkMargins(WatermarkAlign relativeTo, uint left, uint top, uint right, uint bottom)
 {
     RelativeTo = relativeTo;
     Left       = left;
     Top        = top;
     Right      = right;
     Bottom     = bottom;
 }
示例#2
0
 public WatermarkFitBox(WatermarkAlign relativeTo, float x1, float y1, float x2, float y2)
 {
     RelativeTo = relativeTo;
     X1         = x1;
     Y1         = y1;
     X2         = x2;
     Y2         = y2;
 }
示例#3
0
 public WatermarkMargins SetRelativeTo(WatermarkAlign relativeTo)
 {
     RelativeTo = relativeTo;
     return(this);
 }
示例#4
0
 public WatermarkFitBox SetRelativeTo(WatermarkAlign relativeTo)
 {
     RelativeTo = relativeTo;
     return(this);
 }