I'm using loadimage() and then resizeimage() to make a directory preview for pictures, but if there are many pictures in the directory it takes quite along time to do that.
Is there any other way to do this (mayby API) faster???
Timo
Create faster preview for pictures?
Jumped on this somewhere (works in XP only, AFAIK):
Apparently, that's what all these thumbs.db files are about...You can extract thumbnails by calling IShellFolder::GetUIObjectOf to obtain an IExtractImage interface for each item you're interested in. But unfortunately you don't get a free ride on the shell's thumbnail cache.
El_Choni
Just a thought, not sure if its really faster...
Here a piece of pseudo code
Maybe its a bit faster then load image, resize image and so on.
Here a piece of pseudo code
Code: Select all
Load the file of the image in memory (not as an image)
get the pointer of the first pixel.
original size i.e. 100x300
create image 10x30
if in the example the size reduction in 10, so add 10 to the pointer and get the next pixel there.
Write the pixels in a new created image.
I think for all kinds of very fast and accurate image manuplations you should use ImageMagick which is OpenSource and really very very powerfull.
http://www.imagemagick.org
I use its varient GraphicsMagick - graphicsmagick.org which is a COM version of ImageMagick in VB whenever I have to deal with images. Use this only if you do not want to convert the image data to PB's internal image format.
Hope this helps
http://www.imagemagick.org
I use its varient GraphicsMagick - graphicsmagick.org which is a COM version of ImageMagick in VB whenever I have to deal with images. Use this only if you do not want to convert the image data to PB's internal image format.
Hope this helps