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

ImageFromChannel added

This commit is contained in:
JupiterRider 2024-12-06 18:51:35 +01:00
commit 4c4fef33bd

View file

@ -1524,6 +1524,10 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Image ImageFromImage(Image image, Rectangle rec); public static extern Image ImageFromImage(Image image, Rectangle rec);
// <summary>Create an image from a selected channel of another image (GRAYSCALE)</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Image ImageFromChannel(Image image, int selectedChannel);
/// <summary>Create an image from text (default font)</summary> /// <summary>Create an image from text (default font)</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Image ImageText(sbyte* text, int fontSize, Color color); public static extern Image ImageText(sbyte* text, int fontSize, Color color);