Cleanup plugin template

This commit is contained in:
Stone_Red
2026-01-21 21:22:40 +01:00
parent f957edd886
commit 4d0119e4b3
@@ -505,16 +505,13 @@ public class {pluginSafeName}Plugin : Plugin
public override Bitmap Main() public override Bitmap Main()
{{ {{
Bitmap bmp = new Bitmap(2000, 1000); Bitmap bmp = new Bitmap(2000, 1000);
bmp.SetResolution(100, 100); // Set DPI to avoid scaling issues.
using (Graphics g = Graphics.FromImage(bmp)) using (Graphics g = Graphics.FromImage(bmp))
{{ {{
g.Clear(Application.Theme.PrimaryColor); // Set the background color to the color specified in the DesktopMagic application. g.DrawString(""Hello World!"", new Font(Application.Theme.Font, 100), new SolidBrush(Application.Theme.PrimaryColor), new PointF(0, 0)); // Draw ""Hello World"" to the image.
g.DrawString(""Hello World"", new Font(Application.Theme.Font, 100), Brushes.Black, new PointF(0, 0)); // Draw ""Hello World"" to the image.
}} }}
bmp.SetResolution(300, 300); // Set DPI to avoid scaling issues.
return bmp; // Return the image. return bmp; // Return the image.
}} }}
}} }}