當前位置: 首頁>>代碼示例>>C#>>正文


C# XGraphicsPath.AddRectangle方法代碼示例

本文整理匯總了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);
 }
開發者ID:Davincier,項目名稱:openpetra,代碼行數:10,代碼來源:XGraphics.cs

示例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);
 }
開發者ID:BackupTheBerlios,項目名稱:zp7-svn,代碼行數:10,代碼來源:XGraphics.cs

示例3: SetClip

 public void SetClip(Rectangle rect)
 {
   XGraphicsPath path = new XGraphicsPath();
   path.AddRectangle(rect);
   SetClip(path, XCombineMode.Replace);
 }
開發者ID:AnthonyNystrom,項目名稱:Pikling,代碼行數:6,代碼來源:XGraphics.cs

示例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);
 }
開發者ID:BackupTheBerlios,項目名稱:zp7-svn,代碼行數:9,代碼來源:XGraphics.cs


注:本文中的PdfSharp.Drawing.XGraphicsPath.AddRectangle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。