@@ -125,6 +125,11 @@ public static Image GenText(int width, int height, string text) {
125125 return RaylibApi . GenImageText ( width , height , text ) ;
126126 }
127127
128+ /// <inheritdoc cref="RaylibApi.ImageFromImage" />
129+ public static Image FromImage ( Image image , Rectangle rec ) {
130+ return RaylibApi . ImageFromImage ( image , rec ) ;
131+ }
132+
128133 /// <inheritdoc cref="RaylibApi.ImageText" />
129134 public static Image FromText ( string text , int fontSize , Color color ) {
130135 return RaylibApi . ImageText ( text , fontSize , color ) ;
@@ -135,6 +140,11 @@ public static Image FromTextEx(Font font, string text, float fontSize, float spa
135140 return RaylibApi . ImageTextEx ( font , text , fontSize , spacing , tint ) ;
136141 }
137142
143+ /// <inheritdoc cref="RaylibApi.ImageFromChannel" />
144+ public static Image FromChannel ( Image image , int selectedChannel ) {
145+ return RaylibApi . ImageFromChannel ( image , selectedChannel ) ;
146+ }
147+
138148 /// <inheritdoc cref="RaylibApi.UnloadImageColors" />
139149 public static unsafe void UnloadColors ( ReadOnlySpan < Color > colors ) {
140150 fixed ( Color * colorPtr = colors ) {
@@ -179,11 +189,6 @@ public Image Copy() {
179189 return RaylibApi . ImageCopy ( this ) ;
180190 }
181191
182- /// <inheritdoc cref="RaylibApi.ImageFromImage" />
183- public Image FromImage ( Rectangle rec ) {
184- return RaylibApi . ImageFromImage ( this , rec ) ;
185- }
186-
187192 /// <inheritdoc cref="RaylibApi.ImageFormat" />
188193 public void FromFormat ( PixelFormat newFormat ) {
189194 RaylibApi . ImageFormat ( ref this , newFormat ) ;
0 commit comments