few questions about gflLoadThumbnail
Posted: Thu Nov 10, 2005 8:15 pm
Hello and good evening!
i tried around with gfl-sdk about gflLoadThumbnail (using Delphi) and encountered 3 questions i would appreciate very much to have an answer on.
1) Building thumbnails i use gflLoadThumbnail following the Delphi sample in the sdk.
For to remove "unwanted black markers" i use gflAutoCrop.
Is that approach ok so far?
The resulting gfl_bmp in that case may be smaller and needs to be recentered again.
So, then i need to manipulate heavily the subsequent transfer-scanline loop
using some calculated delta offsets for to have the correct center mode.
Method works, but is it ok or not straight-forward in your concept?
If not: recentering should be done by what?
2) Afterwards i store the resulting bitmap in a stringlist and paint the stringlist'ed bitmaps to a listview usingCanvas.StretchDraw (in CustomDrawItem) // painting flickers somehow
Is that good or do you think of to use a better approach to transfer the bitmaps to a listview?
3) -- this is what i was very irritated about --:
I noticed that my loop to retrieve thumbnails was slow. So i tested on a directory containing 450 images:
- using a loop only calling gflLoadThumbnail on the images (nothing else)
the result was: 38 seconds
against
- xnview without cache (thumbnail cache disabled)
the result was: 11 seconds
So, does xnview not use gflLoadThumbnail for to retrieve thumbnails or what might influence this drastic loss of speed?
Many thanks for answer in advance!
klaus2
i tried around with gfl-sdk about gflLoadThumbnail (using Delphi) and encountered 3 questions i would appreciate very much to have an answer on.
1) Building thumbnails i use gflLoadThumbnail following the Delphi sample in the sdk.
For to remove "unwanted black markers" i use gflAutoCrop.
Is that approach ok so far?
The resulting gfl_bmp in that case may be smaller and needs to be recentered again.
So, then i need to manipulate heavily the subsequent transfer-scanline loop
using some calculated delta offsets for to have the correct center mode.
Method works, but is it ok or not straight-forward in your concept?
If not: recentering should be done by what?
2) Afterwards i store the resulting bitmap in a stringlist and paint the stringlist'ed bitmaps to a listview usingCanvas.StretchDraw (in CustomDrawItem) // painting flickers somehow
Is that good or do you think of to use a better approach to transfer the bitmaps to a listview?
3) -- this is what i was very irritated about --:
I noticed that my loop to retrieve thumbnails was slow. So i tested on a directory containing 450 images:
- using a loop only calling gflLoadThumbnail on the images (nothing else)
the result was: 38 seconds
against
- xnview without cache (thumbnail cache disabled)
the result was: 11 seconds
So, does xnview not use gflLoadThumbnail for to retrieve thumbnails or what might influence this drastic loss of speed?
Many thanks for answer in advance!
klaus2