-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19b38f6
commit 1b7ed9b
Showing
2 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
namespace BotNet.Services.Meme { | ||
using SkiaSharp; | ||
|
||
namespace BotNet.Services.Meme { | ||
internal sealed record Template( | ||
string ImageResourceName | ||
string ImageResourceName, | ||
string FontStyleId, | ||
SKTextAlign TextAlign, | ||
SKColor TextColor, | ||
float TextSize, | ||
float LineHeight, | ||
float MaxWidth, | ||
float Rotation, | ||
float X, | ||
float Y | ||
); | ||
|
||
internal static class Templates { | ||
public static readonly Template RAMAD = new("BotNet.Services.Meme.Images.Ramad.jpg"); | ||
public static readonly Template RAMAD = new( | ||
ImageResourceName: "BotNet.Services.Meme.Images.Ramad.jpg", | ||
FontStyleId: "Inter-Regular", | ||
TextAlign: SKTextAlign.Left, | ||
TextColor: new SKColor(0x00, 0x00, 0x00, 0xcc), | ||
TextSize: 17f, | ||
LineHeight: 20f, | ||
MaxWidth: 110f, | ||
Rotation: 1.4f, | ||
X: 120f, | ||
Y: 100f | ||
); | ||
} | ||
} |