I have split the thumbnail project into to parts. In part one, this one, I will show you how to view thumbnails the easy way using rkView.
rkView is just like a virtual grid view, no data is stored inside it. rkView was made to ease the task of viewing tumbnails but are not in any way limited to this task. I also use this component as a ownerdraw listview. So go ahead an install this component (it is included in the download).
Showing thumbnails using rkView is an easy task all we need is a list of thumbnails and some code to draw it. rkView will call the ‘OnCellPaint’ event for each cell, giving us a canvas to paint on.
In this demo I have chosen to store the thumbnails as jpeg since it occupies less space than using bitmaps.
Well it is time to download and run the code.
Download: Thumbnails demo