listview to preview pictures

  • Thread starter Thread starter Cyrille37
  • Start date Start date
C

Cyrille37

Hi all,

I would like to get a list of thumbails of pictures stored in a smartphone 2003 SE
to make a application like a 'Pictures Album' from camera's pictures.
I'm new with CompactFramework, so I come here to got some ideas on howto start ;o)

Should it be a listView with items as picturebox ??
How to make thumbail ?? Will picturebox make them ??

Thanks for all your ideas !
cyrille
 
To use images in a ListView you'll need an ImageList control. You can
populate the ImageList with images from your files. Then set the
LargeImageList property of your list view to the imagelist, and set the
ImageIndex property on each item to the appropriate item in the collection.
The size of your large icons will be defined by the size of your ImageList
rather than set through the ListView control yourself. By default the
ImageList assumes the size of the first item added to it.
There isn't any functionality built into .NETCF to create thumbnails, but
you can do it - see this article for details:-
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=B1D16E2E-97EE-4FD1-9E3C-4378C86751FB

Peter
 
Peter Foot [MVP] a écrit :
To use images in a ListView you'll need an ImageList control. You can
populate the ImageList with images from your files.
There isn't any functionality built into .NETCF to create thumbnails, but
you can do it - see this article for details:-
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=B1D16E2E-97EE-4FD1-9E3C-4378C86751FB

Peter,

Populate imageList method works fine.
But only for small images.

I try to populate with pictures coming from the smartphone's camera and the Bitmap class Crash !
I then try with different image format like 'jpg' and 'bmp'. All works with small images, and crash with bigger image
like 640x400.

And I can't make thumbails, because method show at
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=B1D16E2E-97EE-4FD1-9E3C-4378C86751FB use Bitmap class to load
image ...

note: I'm using VisualStudio2003 and Smartphone Emulator 2003.

Any idea ??
thanks,
cyrille
 
I then try with different image format like 'jpg' and 'bmp'. All works
with small images, and crash with bigger image like 640x400.
note: I'm using VisualStudio2003 and Smartphone Emulator 2003.

I've just try with the real smartphone and it's working.
Only the emulator crashing (throw a exception).
 

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

Similar Threads


Back
Top