Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtextures] Created ImageFromChannel() #4105

Merged
merged 7 commits into from
Jun 30, 2024

Conversation

brccabral
Copy link
Contributor

Adds the possibility to extract a specific channel from an image

Adds the possibility to extract a specific channel from an image
@brccabral brccabral changed the title created ImageFromChannel [rtextures] created ImageFromChannel Jun 25, 2024
examples/textures/textures_image_channel.c Outdated Show resolved Hide resolved
examples/textures/textures_image_channel.c Outdated Show resolved Hide resolved
examples/textures/textures_image_channel.c Outdated Show resolved Hide resolved
src/rtextures.c Outdated Show resolved Hide resolved
src/rtextures.c Outdated Show resolved Hide resolved
src/rtextures.c Outdated Show resolved Hide resolved
src/raylib.h Outdated Show resolved Hide resolved
src/rtextures.c Outdated Show resolved Hide resolved
src/rtextures.c Outdated Show resolved Hide resolved
@raysan5 raysan5 changed the title [rtextures] created ImageFromChannel [rtextures] Created ImageFromChannel() Jun 28, 2024
@raysan5
Copy link
Owner

raysan5 commented Jun 28, 2024

@brccabral Thanks for the implementation, added some points to review. The function should return the selected channel, not channel + alpha, and threshold could be skipped (it could be managed at user side or with a separate function if required).

@brccabral
Copy link
Contributor Author

@brccabral Thanks for the implementation, added some points to review. The function should return the selected channel, not channel + alpha, and threshold could be skipped (it could be managed at user side or with a separate function if required).

changes applied

@raysan5 raysan5 merged commit 6e2661f into raysan5:master Jun 30, 2024
@raysan5
Copy link
Owner

raysan5 commented Jun 30, 2024

@brccabral Great addition! Thank you very much! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants