Watch
2
0
Fork
You've already forked raylib-cs
0

Merge branch 'dev' into master

This commit is contained in:
Rgebee 2023-12-26 10:17:00 +00:00 committed by GitHub
commit 627aa45d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -422,6 +422,13 @@ public static unsafe partial class Raylib
}
}
/// <summary>Generate image: grayscale image from text data</summary>
public static Image GenImageText(int width, int height, string text)
{
using var str1 = text.ToUtf8Buffer();
return GenImageText(width, height, str1.AsPointer());
}
/// <summary>Create an image from text (default font)</summary>
public static Image ImageText(string text, int fontSize, Color color)
{