mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 17:06:12 +02:00
28 lines
731 B
C#
28 lines
731 B
C#
using DesktopMagicPluginAPI;
|
|
using DesktopMagicPluginAPI.Inputs;
|
|
using System.Drawing;
|
|
using System.Diagnostics;
|
|
|
|
namespace DesktopMagicPlugin.Test
|
|
{
|
|
public class GifPlugin : Plugin
|
|
{
|
|
[Element("Gif path:")]
|
|
public TextBox input = new TextBox("");
|
|
|
|
public override int UpdateInterval { get; set; } = 100;
|
|
|
|
public override void OnMouseWheel(Point position, int delta)
|
|
{
|
|
Debug.WriteLine(position + " | " + delta);
|
|
}
|
|
|
|
public override Bitmap Main()
|
|
{
|
|
Bitmap bmp = new Bitmap(100, 100);
|
|
using Graphics graphics = Graphics.FromImage(bmp);
|
|
graphics.Clear(Application.Color);
|
|
return bmp;
|
|
}
|
|
}
|
|
} |