docs.rs failed to build bmp-0.0.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bmp-0.5.0
rust-bmp
Small module for reading and writing bitmap images. Currently only 24-bit RGB BMP images are supported.
Usage
Initialize a new image with the new
function, by specifying width
and height
.
extern crate bmp;
use Image;
let mut img = new;
Edit image data using the get_pixel
and set_pixel
functions.
Save an image with the save
function, by specifying the path
.
let pixel = img.get_pixel;
img.set_pixel;
img.save;
Open an existing image with the open
function, by specifying the path
.
let mut img = open;
Coordinate convention
The BMP images are accessed in row-major order, where point (0, 0) is defined to be in the upper left corner of the image. Example
extern crate bmp;
use Image;