This project is read-only.

offset value must be greater than 0 - Image Stream issue

Aug 16, 2010 at 11:09 PM
Edited Aug 16, 2010 at 11:10 PM
When using the following code:

originalImage is a FileStream (File.OpenRead())

Image newImage = new Image();
newImage.IsLoadingSynchronously = true;
originalImage.Seek(0, SeekOrigin.Begin);

Upon setting source, the following error is received:

value must be greater than 0 (parameter 'offset')

I assume this is coming from the BufferedStream, but can figure out what is causing it!!! Please help.

With gratitude,
Sep 9, 2010 at 12:11 PM

Sorry, had a lot to do, but I have more time for image tools now. :) I will have a look to your problem.