TiffBitmapDecoder decoder = new TiffBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default); using (MemoryStream allFra
Reset Position of ms to 0 after you fill it:
Position
ms
enc.Save(ms); ms.Position = 0; ms.CopyTo(allFrameStream);
From Stream.CopyTo
Copying begins at the current position in the current stream