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