Creating JPEG using Bitmap()

  • Thread starter Thread starter Darkvisor
  • Start date Start date
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.
 
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.
 
Back
Top