Added functionality for loading selected strip

This commit is contained in:
Alan Race committed 2022-05-09 09:17:27 +02:00
1 parent ca4da33dd7
commit e57ca1a926
4 files changed
+30 -22

No files matched your search

+2
View File
@@ -56,6 +56,7 @@ pub enum TiffFormatError {
actual_samples: usize,
required_samples: usize,
},
InvalidChunkIndex(usize),
InvalidTag,
InvalidTagValueType(Tag),
RequiredTagNotFound(Tag),
@@ -100,6 +101,7 @@ impl fmt::Display for TiffFormatError {
actual_samples, required_samples
)
}
InvalidChunkIndex(index) => write!(fmt, "Image chunk index ({}) requested.", index),
InvalidTag => write!(fmt, "Image contains invalid tag."),
InvalidTagValueType(ref tag) => {
write!(fmt, "Tag `{:?}` did not have the expected value type.", tag)