本文整理匯總了C#中System.Drawing.Rect.GetRectangle方法的典型用法代碼示例。如果您正苦於以下問題:C# Rect.GetRectangle方法的具體用法?C# Rect.GetRectangle怎麽用?C# Rect.GetRectangle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Drawing.Rect
的用法示例。
在下文中一共展示了Rect.GetRectangle方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DrawRectangle
// =====================================================================
public void DrawRectangle(Rect theRect, ILineStyleInfo theStyle)
{
mGraphics.DrawRectangle(((GDIPlusLineStyle)theStyle).Pen, theRect.GetRectangle());
}
示例2: Clear
public void Clear(Rect Area)
{
API.FillRectangle(hDC, mBackColor, Area.GetRectangle());
}
示例3: GradientFillRectangle
public void GradientFillRectangle(Rect theRect, Color Color1, Color Color2, LinearGradientMode GradientType)
{
Rectangle R = theRect.GetRectangle();
Brush b = new LinearGradientBrush(R, Color1, Color2, GradientType);
mGraphics.FillRectangle(b, R);
}
示例4: FillRectangle
public void FillRectangle(Rect theRect, Color fillColor)
{
SolidBrush b = new SolidBrush(fillColor);
mGraphics.FillRectangle(b, theRect.GetRectangle());
b.Dispose();
}
示例5: FillEllipse
public void FillEllipse(Rect theRect, Color fillColor)
{
mGraphics.FillEllipse(new SolidBrush(fillColor), theRect.GetRectangle());
}
示例6: FillRectangle
public void FillRectangle(Rect theRect, System.Drawing.Color fillColor)
{
if (fillColor != System.Drawing.Color.Transparent)
{
API.FillRectangle(hDC, fillColor, theRect.GetRectangle());
}
}