示例#1
0
        public override void CreateArea(BrickGraphics graph, RectangleF rectBorder, bool Three3D)
        {
            PointF pt1 = rectBorder.Location;
            PointF pt2 = new PointF(rectBorder.X + rectBorder.Width, rectBorder.Y + rectBorder.Height);

            Brush brush;

            if (this.FillStyle == FillStyle.Hatch)
            {
                brush = new HatchBrush(this.HatchStyle, this.BorderColor, this.FillColor);
            }
            else if (this.FillStyle == FillStyle.Solid)
            {
                brush = new SolidBrush(this.FillColor);
            }
            else if (this.FillStyle == FillStyle.Picture && this.FillImage != null)
            {
                brush = new TextureBrush(this.FillImage);
            }
            else
            {
                brush = new SolidBrush(Color.Transparent);
            }
            graph.DrawShape(this.pen, 2, pt1, pt2, this.BorderColor, this.FillColor, this.BorderWidth, brush, Three3D);
        }
示例#2
0
        public override void CreateArea(BrickGraphics graph, RectangleF rectBorder, bool Three3D)
        {
            Pen drawpen = this.ArrowPen();

            PointF[] points = this.DrawPoints(rectBorder);
            graph.DrawShape(drawpen, 0, points[0], points[1], this.BorderColor, this.BorderColor, this.BorderWidth, Brushes.Black, Three3D);
        }