--- a/ImageReader.st Thu Aug 31 18:02:57 2017 +0200
+++ b/ImageReader.st Thu Aug 31 18:16:44 2017 +0200
@@ -2395,8 +2395,18 @@
bitsPerPixel
"return the number of bits per pixel"
+ "/ if depth was given, that is what we use;
+ "/ otherwise, compute from bitsPerSample.
+ "/ notice, that depth is >= sum(bitsPerSample),
+ "/ for example, in a 16bit image, we mght have
+ "/ depth == 16 and bitsPerSample = 5+5+5,
+
+ depth notNil ifTrue:[^ depth].
+
bitsPerSample isNil ifTrue:[^ nil].
^ bitsPerSample sum
+
+ "Modified (format): / 31-08-2017 / 18:09:59 / cg"
!
bitsPerRow