Skip to content

evanfarrar/ex_bump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A BMP file writer in pure Elixir.

EXAMPLES:

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)

About

Library for editing bitmap files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages