You probably using the memory stream before data is actually written into the stream.
Please use Tiff.Flush()
method before accessing data in the memory stream. And please make sure you call Tiff.WriteDirectory()
method for each page you create.
EDIT:
Please also take a look at Bob Powell's article on Generating Multi-Page TIFF files. The article shows how to use EncoderParameter
s to actually generate a multipage TIFF.
Using
tiffImg.Save(@"C:\test\test2.tiff", System.Drawing.Imaging.ImageFormat.Tiff);
you are probably save only first frame.