We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b44304 + d76606c commit 3b5d168Copy full SHA for 3b5d168
src/main.rs
@@ -121,7 +121,7 @@ use image::ColorType;
121
122
/// Write the buffer `pixels`, whose dimensions are given by `bounds`, to the
123
/// file named `filename`.
124
-fn write_bitmap(filename: &str, pixels: &[u8], bounds: (usize, usize))
+fn write_image(filename: &str, pixels: &[u8], bounds: (usize, usize))
125
-> Result<()>
126
{
127
let output = try!(File::create(filename));
@@ -214,5 +214,5 @@ fn main() {
214
dt.as_secs() as f64 + dt.subsec_nanos() as f64 * 1e-9);
215
}
216
217
- write_bitmap(&args[1], &pixels[..], bounds).expect("error writing PNG file");
+ write_image(&args[1], &pixels[..], bounds).expect("error writing PNG file");
218
0 commit comments