Change colorspace in Header to ColorSpace type
This commit is contained in:
parent
83e75b1b65
commit
7d0b0a5b62
2 changed files with 12 additions and 5 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue