상속: GPath
예제 #1
0
    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);
	}
예제 #2
0
        public virtual void SetClipRectangle(Rectangle clipRect)
        {
            RectangleG rectPath = new RectangleG(clipRect.X, clipRect.Y, clipRect.Width, clipRect.Height);
            DeviceContext.ReplayPath(rectPath);

            DeviceContext.SetPathAsClipRegion();
        }