X
xalex
Hi,
we are developing an application that lets you annotate your Images on
the compact flash card of your
digital camera to store the images wirh annotations later in an image
database.
i want to show large JPGs (or only the thumbsnails containing in the
larger imagges) with the code below:
Bitmap bm = new Bitmap(filename);
imageBox.Image = bm;
Small jpg are shown perfectly, larger files (3megapixel or more) cause
the system.drawing.dll throw
an exception (unknonw exception with the helpful message 'Exception' )
I browsed the web and found the infos below about imgdecmp.dll and the
undocumented APIs
SHLoadImageFile and SHLoadImageResource
It cant be true, that it isnt possible to display images with Compact
Framework (1.1)
Is there an open or cloed source library that supports displaying jpgs?
Thanks,
Alex
--
Alexander Ramisch mailto:[email protected]
pixafe GbR http://www.pixafe.com
Infos about the undocumented API:
Windows Mobile devices have traditionally included a ROM library called
imgdecmp.dll for Microsoft applications to use. This library exported
an API that was not documented in the SDK, but it has been used by
developers to load image files. Starting with Windows Mobile 2003
Second Edition, SHLoadImageFile and SHLoadImageResource were added
into the headers for aygshell.h. These APIs should be used in place of
imaging support previously provided by imgdecmp.dll. Alternatively,
advanced imaging APIs are provided by imaging.h for applications
targeting Windows Mobile 5.0 or later. On Windows Mobile 5.0,
applications may get caught in an infinite loop if they call the
DecompressImageIndirect function with a DecompressImageInfo structure
with a prepopulated buffer and without specifying a correct non-zero
value for dwBufferCurrent. Note Imgdecmp.dll will be removed from a
future version of the Windows Mobile platform.
we are developing an application that lets you annotate your Images on
the compact flash card of your
digital camera to store the images wirh annotations later in an image
database.
i want to show large JPGs (or only the thumbsnails containing in the
larger imagges) with the code below:
Bitmap bm = new Bitmap(filename);
imageBox.Image = bm;
Small jpg are shown perfectly, larger files (3megapixel or more) cause
the system.drawing.dll throw
an exception (unknonw exception with the helpful message 'Exception' )
I browsed the web and found the infos below about imgdecmp.dll and the
undocumented APIs
SHLoadImageFile and SHLoadImageResource
It cant be true, that it isnt possible to display images with Compact
Framework (1.1)
Is there an open or cloed source library that supports displaying jpgs?
Thanks,
Alex
--
Alexander Ramisch mailto:[email protected]
pixafe GbR http://www.pixafe.com
Infos about the undocumented API:
Windows Mobile devices have traditionally included a ROM library called
imgdecmp.dll for Microsoft applications to use. This library exported
an API that was not documented in the SDK, but it has been used by
developers to load image files. Starting with Windows Mobile 2003
Second Edition, SHLoadImageFile and SHLoadImageResource were added
into the headers for aygshell.h. These APIs should be used in place of
imaging support previously provided by imgdecmp.dll. Alternatively,
advanced imaging APIs are provided by imaging.h for applications
targeting Windows Mobile 5.0 or later. On Windows Mobile 5.0,
applications may get caught in an infinite loop if they call the
DecompressImageIndirect function with a DecompressImageInfo structure
with a prepopulated buffer and without specifying a correct non-zero
value for dwBufferCurrent. Note Imgdecmp.dll will be removed from a
future version of the Windows Mobile platform.