42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
//using SkiaSharp;
|
|
//using System;
|
|
//using System.Collections.Generic;
|
|
//using System.Text;
|
|
|
|
//namespace DataDisplay.Renderers
|
|
//{
|
|
// class CircleRenderer : IRenderer
|
|
// {
|
|
// public void PaintSurface(SKSurface surface, SKImageInfo info)
|
|
// {
|
|
// SKCanvas canvas = surface.Canvas; // récupère le canvas
|
|
// canvas.Clear();
|
|
|
|
// // opérations de dessin, par exemple dessiner un cercle
|
|
// // paramètre de remplissage du cercle
|
|
// SKPaint fillPaint = new SKPaint
|
|
// {
|
|
// Style = SKPaintStyle.Fill,
|
|
// Color = FillColor
|
|
// };
|
|
// canvas.DrawCircle(info.Width / 2, info.Height / 2, 100, fillPaint);
|
|
// }
|
|
|
|
// SKColor _fillColor = new SKColor(160, 160, 160);
|
|
// public SKColor FillColor
|
|
// {
|
|
// get => _fillColor;
|
|
// set
|
|
// {
|
|
// if (_fillColor != value)
|
|
// {
|
|
// _fillColor = value;
|
|
// RefreshRequested?.Invoke(this, EventArgs.Empty);
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
// public event EventHandler RefreshRequested;
|
|
// }
|
|
//}
|