Ejemplo n.º 1
0
        public void Draw(
            Graphics graphics,
            Rasterizer2D fastRasterizer,
            Class335 coloredPath,
            bool fill,
            Matrix4D transform,
            Class385 context)
        {
            Point2D p1 = transform.TransformTo2D(this.vector4D_0);
            Point2D p2 = transform.TransformTo2D(this.vector4D_1);

            fastRasterizer.DrawLineSegment(p1, p2, (uint)coloredPath.Color.ToArgb());
        }
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;
            }
        }