Take a look at this thread:
http://www.google.com/groups?hl=en&l...dm=052f01c37d1
5%24b42dee00%24a001280a%40phx.gbl&rnum=22&prev=/groups%3Fq%3DJPEG%2Bgroup:*c
ompactframework%26start%3D20%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26s
elm%3D052f01c37d15%2524b42dee00%2524a001280a%2540phx.gbl%26rnum%3D22
--
Alex Yakhnin .NET CF MVP
www.intelliprog.com |
www.opennetcf.org
"Darkvisor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.