File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ use image::ColorType;
121121
122122/// Write the buffer `pixels`, whose dimensions are given by `bounds`, to the
123123/// file named `filename`.
124- fn write_bitmap ( filename : & str , pixels : & [ u8 ] , bounds : ( usize , usize ) )
124+ fn write_image ( filename : & str , pixels : & [ u8 ] , bounds : ( usize , usize ) )
125125 -> Result < ( ) >
126126{
127127 let output = try!( File :: create ( filename) ) ;
@@ -160,5 +160,5 @@ fn main() {
160160 let mut pixels = vec ! [ 0 ; bounds. 0 * bounds. 1 ] ;
161161 render ( & mut pixels[ ..] , bounds, upper_left, lower_right) ;
162162
163- write_bitmap ( & args[ 1 ] , & pixels[ ..] , bounds) . expect ( "error writing PNG file" ) ;
163+ write_image ( & args[ 1 ] , & pixels[ ..] , bounds) . expect ( "error writing PNG file" ) ;
164164}
You can’t perform that action at this time.
0 commit comments