You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Create an image from a selected channel of another image
Parameters
Parameter
Default Value
Note
image
channel
Return value
Condition
Return Value
(always)
map
Notes
Example
img=raylib.LoadImage("photo.png")
// Extract the red channel (channel 0) as a grayscale imageredChannel=raylib.ImageFromChannel(img, 0)
raylib.ExportImageredChannel, "red_channel.png"raylib.UnloadImageredChannelraylib.UnloadImageimg