public override void Draw(BaseRenderer r, PageFormat format, float border, Color mainColor, Color secondaryColor) { PBrush brush = PBrush.CreateSolid(mainColor); r.BeginCircles(brush); for (float x = border; x < format.Width - border; x += 5) { float xpx = Util.MmToPoint(x); for (float y = border; y < format.Height - border; y += 5) { float ypx = Util.MmToPoint(y); r.Circle(xpx, ypx, 1); } } r.EndCircle(); }
public void RenderTransformed(BaseRenderer r) { if (r is GPURenderer) { GPURenderer gr = (GPURenderer)r; Matrix3x3 mat = gr.GetCurrentTransform(); gr.ResetTransform(); gr.Transform(this.Transformation * mat); this.Render(r); gr.ResetTransform(); gr.Transform(mat); } else { } r.BeginCircles(PBrush.CreateSolid(System.Drawing.Color.Lime)); foreach (var point in Points) { r.Circle(point.X, point.Y, 4); } r.EndCircle(); }