Jump to content
Sign in to follow this  
TheOnlyOne

How to get thumbnails from images?

Recommended Posts

Hi.
This is the first time even when I use this lib.


I have some kind of playlist of images in a TStringGrid. I want to generate the thumbnail for each visible row and show it. I want to do this only for the currently visible rows (10) not for the full list of rows/images (1000). This will create too much I/O activity.

When the user scrolls the grid up/down, I want to generate the thumbnail for (now) current set of images/rows.

So, obviously I have to somehow start 10 background tasks and when they are done, they have to return a bitmap back to the grid (VCL main thread).

What would be the best approach for this? Which of the examples provided in the OTL comes closes to my need?

 

Many many thanks.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×