Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanfarrar/ex_bump
Library for editing bitmap files
https://github.com/evanfarrar/ex_bump
Last synced: 4 days ago
JSON representation
Library for editing bitmap files
- Host: GitHub
- URL: https://github.com/evanfarrar/ex_bump
- Owner: evanfarrar
- License: mit
- Created: 2015-02-19T20:55:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-04T01:38:53.000Z (almost 8 years ago)
- Last Synced: 2024-08-09T12:18:45.661Z (3 months ago)
- Language: Elixir
- Size: 176 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A BMP file writer in pure Elixir. (Images)
- fucking-awesome-elixir - bump - A BMP file writer in pure Elixir. (Images)
- awesome-elixir - bump - A BMP file writer in pure Elixir. (Images)
README
A BMP file writer in pure Elixir.
EXAMPLES:
```elixir
pixel_data = [[[0xFF,0xFF,0xFF],[0x00,0x00,0x00]],[[0x00,0x00,0x00],[0xFF,0xFF,0xFF]]]
Bump.write(filename: "file.bmp", pixel_data: pixel_data)
pixel_data = Bump.read("file.bmp")canvas = Canvas.size(%Size{height: 400, width: 400}) |>
Canvas.fill(color: Color.named(:red))Bump.write(filename: "red.bmp", canvas: canvas)
canvas2 = Canvas.fill(canvas, color: Color.named(:blue),
rect: %Rect{ size: %Size{height: 200, width: 200},
origin: %Point{x: 100, y: 100}})
Bump.write(filename: "redblue.bmp", canvas: canvas2)
```