/// <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; }
public WatermarkFitBox(WatermarkAlign relativeTo, float x1, float y1, float x2, float y2) { RelativeTo = relativeTo; X1 = x1; Y1 = y1; X2 = x2; Y2 = y2; }
public WatermarkMargins SetRelativeTo(WatermarkAlign relativeTo) { RelativeTo = relativeTo; return(this); }
public WatermarkFitBox SetRelativeTo(WatermarkAlign relativeTo) { RelativeTo = relativeTo; return(this); }