public GRectangle(string name, int x, int y, int width, int height, uint bkColor, uint borderColor, float weight) :base(name, x, y, width, height) { fRectangle = new RectangleG(0, 0, width, height); fBackColor = bkColor; fBorderColor = borderColor; fPen = new GDIPen(fBorderColor); }
public virtual void SetClipRectangle(Rectangle clipRect) { RectangleG rectPath = new RectangleG(clipRect.X, clipRect.Y, clipRect.Width, clipRect.Height); DeviceContext.ReplayPath(rectPath); DeviceContext.SetPathAsClipRegion(); }