Skip to content

Globoplox/bmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bmp

Parse and build BMP files in crystal lang. No dependency.
Allows to open simplest BMP files with Pluto.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      bmp:
        github: globoplox/bmp
  2. Run shards install

Usage

require "bmp"

bmp = BMP.from_file "spec/sample_640×426.bmp"
bmp.color_at(639, 425).red.should eq 58
bmp.color_at(0, 0).green.should eq 130

With Pluto

Note that pluto is not listed as a dependency.

require "pluto"
require "bmp/pluto"

Pluto::ImageRGBA.from_bmp buffer

Contributors

About

Pure crystal BMP manipulation

Resources

License

Stars

Watchers

Forks

Packages

No packages published