lib_stb_image
Version, currently master branch1 version
- master branchlatestOct 9, 2017
github.com/calebuharrison/LibSTBImage
Crystal bindings for stb_image
0 stars
2 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
lib_stb_image:
github: calebuharrison/LibSTBImage
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Caleb Uriah Harrison
Dependencies
This version declares no dependencies.
README
LibSTBImage
Crystal bindings for stb_image.
Installation
Add this to your application's shard.yml:
dependencies:
lib_stb_image:
github: calebuharrison/LibSTBImage
Install your dependencies:
shards install
Usage
require "lib_stb_image"
# image_data is a pointer to the raw bytes of the image - perfect for OpenGL!
image_data = LibSTBImage.load("path/to/image/file", out width, out height, out number_of_channels, LibSTBImage::Channels::Default)
puts "image width: #{width}"
puts "image height: #{height}"
puts "number of channels in the image: #{number_of_channels}"
Contributing
- Fork it ( https://github.com/calebuharrison/lib_stb_image/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- calebuharrison Caleb Uriah Harrison - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 9, 2017
- Crystal
0.23.1- Indexed
- yes
Dependents
Repository
github.com/calebuharrison/LibSTBImage
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 25, 2026
- Synced
- Sep 25, 2026
- Versions
- 1