Hi,
I have a 300 dpi jpeg image (1576 x 504 pixels) that is giving the following error by the Image constructor:
Index was outside the bounds of the array.
Here is the code I'm executing:
byte[] imageData = ....
Image image = new Image(new BufferedStream(new MemoryStream(imageData)), x, y, 1.0f);
Now, the interesting part. If I open the image in PhotoShop and save it as 96 dpi, I do not get the above error. I don't know if it's the dpi or something else.
Can you help?
Thanks,
Scott
Displaying 300 dpi jpeg image causes error
Re: Displaying 300 dpi jpeg image causes error
Support · Jun 30, 2008Hello Scott,
The Dpi of the image will not be a problem when adding the image using our product. You can add an image of 300 dpi without any problem.
Please make sure that you are using the latest build of our product. You can download the latest build from our CustomerArea
by logging in using your current serial number.
Can you please send over the image which is giving this error to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it to find our what is causing this error to occur.
Thanks,
ceTe Software Support Team.