Ejemplo n.º 1
0
 public void Draw(
     Graphics graphics,
     Class335 coloredPath,
     bool fill,
     Matrix4D transform,
     Class385 context)
 {
     this.method_0(transform);
     if (fill && this.bool_0)
     {
         graphics.FillPolygon((Brush)coloredPath.method_3(context), this.pointF_0);
     }
     if (this.bool_0)
     {
         graphics.DrawPolygon(coloredPath.method_0(context, fill && this.bool_0), this.pointF_0);
     }
     else
     {
         graphics.DrawLines(coloredPath.method_0(context, fill && this.bool_0), this.pointF_0);
     }
 }
Ejemplo n.º 2
0
        public void Draw(
            Graphics graphics,
            Rasterizer2D fastRasterizer,
            Class335 coloredPath,
            bool fill,
            Matrix4D transform,
            Class385 context)
        {
            this.method_0(transform);
            if (fill && this.bool_0)
            {
                graphics.FillPolygon((Brush)coloredPath.method_3(context), this.pointF_0);
            }
            Point2D p1   = (Point2D)(this.bool_0 ? this.pointF_0[this.pointF_0.Length - 1] : this.pointF_0[0]);
            uint    argb = (uint)coloredPath.Color.ToArgb();

            for (int index = this.bool_0 ? 0 : 1; index < this.pointF_0.Length; ++index)
            {
                Point2D p2 = (Point2D)this.pointF_0[index];
                fastRasterizer.DrawLineSegment(p1, p2, argb);
                p1 = p2;
            }
        }