Change colorspace in Header to ColorSpace type

This commit is contained in:
Ivan Smirnov 2021-11-29 22:30:29 +00:00
commit 7d0b0a5b62
2 changed files with 12 additions and 5 deletions

View file

@ -151,7 +151,7 @@ where
header.width = width;
header.height = height;
header.channels = N as u8;
header.colorspace = colorspace.into();
header.colorspace = colorspace;
buf.write(header.to_bytes());
let mut index = [Pixel::new(); 64];