This commit is contained in:
2024-02-23 06:53:16 -05:00
commit dbdccce727
1094 changed files with 57645 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
//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;
// }
//}

View File

@@ -0,0 +1,11 @@
using System;
using SkiaSharp;
namespace DataDisplay.Renderers
{
public interface IRenderer
{
void PaintSurface(SKSurface surface, SKImageInfo info);
event EventHandler RefreshRequested;
}
}