some fiddling with documentation. Added Poly type
This commit is contained in:
@@ -26,7 +26,7 @@ pub fn load_raw(filename: String) -> (Vec<u8>, (u32,u32)) {
|
||||
let mut image_buffer = Vec::new();
|
||||
|
||||
if pixel_count != data_length as usize {
|
||||
println!("Creating apha channel...");
|
||||
println!("Creating alpha channel for {}", filename);
|
||||
for i in img.raw_pixels().iter() {
|
||||
if (image_buffer.len() + 1) % 4 == 0 {
|
||||
image_buffer.push(255);
|
||||
|
||||
Reference in New Issue
Block a user