Add documentation and reorganize

This commit is contained in:
Birk Tjelmeland committed 2019-02-09 21:53:11 +01:00
1 parent 9ca445a5eb
commit b0d7ac9cbf
3 files changed
+127 -35

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@ fn test_gray_u8_roundtrip()
let mut tiff = TiffEncoder::new(&mut file).unwrap();
let (width, height) = decoder.dimensions().unwrap();
tiff.write_image::<colortype::Grey8>(width, height, &image_data).unwrap();
tiff.write_image::<colortype::Gray8>(width, height, &image_data).unwrap();
}
file.seek(SeekFrom::Start(0)).unwrap();
{
@@ -119,7 +119,7 @@ fn test_gray_u16_roundtrip()
let mut tiff = TiffEncoder::new(&mut file).unwrap();
let (width, height) = decoder.dimensions().unwrap();
tiff.write_image::<colortype::Grey16>(width, height, &image_data).unwrap();
tiff.write_image::<colortype::Gray16>(width, height, &image_data).unwrap();
}
file.seek(SeekFrom::Start(0)).unwrap();
{