|
Thanks for the tip. I tested and you are right. Saving in
some formats like BMP will set the file pointer to the end, while in others
like TIFLZW, it will be left somewhere near the beginning (but not the very
first byte). I think this depends on how the file format encoder writes the
data. Probably with TIFLZW, the encoder needs to update the TIFF header after
it finishes compressing the data, while in BMP, the header is written at the
beginning.
In all cases, you should always set the seek position
explicitly to ensure your program behaves correctly, which is what you're doing
now.
|