本文整理匯總了C#中PdfSharp.Drawing.XGraphicsPath.AddRectangle方法的典型用法代碼示例。如果您正苦於以下問題:C# XGraphicsPath.AddRectangle方法的具體用法?C# XGraphicsPath.AddRectangle怎麽用?C# XGraphicsPath.AddRectangle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PdfSharp.Drawing.XGraphicsPath
的用法示例。
在下文中一共展示了XGraphicsPath.AddRectangle方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IntersectClip
/// <summary>
/// Updates the clip region of this XGraphics to the intersection of the
/// current clip region and the specified rectangle.
/// </summary>
public void IntersectClip(XRect rect)
{
XGraphicsPath path = new XGraphicsPath();
path.AddRectangle(rect);
IntersectClip(path);
}
示例2: IntersectClip
/// <summary>
/// Updates the clip region of this XGraphics to the intersection of the
/// current clip region and the specified rectangle.
/// </summary>
public void IntersectClip(XRect rect)
{
XGraphicsPath path = new XGraphicsPath();
path.AddRectangle(rect);
SetClip(path, XCombineMode.Intersect);
}
示例3: SetClip
public void SetClip(Rectangle rect)
{
XGraphicsPath path = new XGraphicsPath();
path.AddRectangle(rect);
SetClip(path, XCombineMode.Replace);
}
示例4: SetClip
/// <summary>
/// Sets the clipping region to the specified graphical path.
/// </summary>
public void SetClip(XRect rect, XCombineMode combineMode)
{
XGraphicsPath path = new XGraphicsPath();
path.AddRectangle(rect);
SetClip(path, combineMode);
}