Ejemplo n.º 1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     e.Graphics.Clear(Settings.Theme.Background);
     painter.Update(e.Graphics, Settings);
     painter.PaintRuler();
     painter.PaintMarkers(mouseLine, CustomLines);
     base.OnPaint(e);
 }
Ejemplo n.º 2
0
        protected override void OnPaint(PaintEventArgs e)
        {
            BufferedGraphics buffer;

            buffer = BufferedGraphicsManager.Current.Allocate(e.Graphics, e.ClipRectangle);
            // clear the graphics first
            buffer.Graphics.FillRectangle(new SolidBrush(TransparencyKey), e.ClipRectangle);
            // paint the ruler into buffer
            painter.Update(buffer.Graphics, Settings, ResizeMode);
            painter.PaintRuler();
            painter.PaintMarkers(CustomMarkers, mouseTracker.Position);
            // paint buffer onto screen
            buffer.Render();
            buffer.Dispose();
        }
Ejemplo n.º 3
0
 private void panPreview_Paint(object sender, PaintEventArgs e)
 {
     painter.Update(e.Graphics, previewSettings, FormResizeMode.Horizontal);
     painter.PaintRuler();
 }
Ejemplo n.º 4
0
 private void panPreview_Paint(object sender, PaintEventArgs e)
 {
     painter.Update(e.Graphics, previewSettings);
     painter.PaintRuler();
 }