Creating JPEG using Bitmap()

D

Darkvisor

Hi,

I'm trying to display a JPEG image which I have in a memory stream.
I'm using

Bitmap img = new Bitmap( imgStream );

This works fine when I target an XP box but fails to decode the JPEG
correctly when I target the Compact Framework and use the Pocket PC
2002 & 2003 emulator. The JPEG is decoded without error but of the
wrong size. It should be 8 wide by 10560 high but usually is 7 wide by
9926 high, this varies depending on the actual image contents. Actual
error is Wrong Arg. when I call GetPixel.

Has anyone got an answer for this? I'm I going mad?

Cheers

Dave.
 
A

Anthony Wong [MSFT]

Can you attach a piece of code reproducing the problem as well as the JPEG
file you stored in the MemoryStream? Thanks.

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top