You can write a function in C++ that tells Windows how to generate thumbnails from your file.
This link explains about it. Check out the section about Thumbnail Image handler
. This is the function that you will need to implement.
From what I managed to understand, the procedure is this:
- Write a in-process COM server (DLL) that implements IThumbnailProvider interface
- Put the DLL file somewhere on your computer.
- Write an entry to the registry, by using the procedure described in this page.
That still leaves you with the problem of thumbnail extraction from .fig
file. As far as I know, fig
files are nothing but mat
files. I am fairly sure that it is possible.
You will need a custom save function for all figures. It will print a thumbnail of the image (by using the print
command), and save it inside the figure.
I know that it isn't much information, but it can help you to get started. You might as well ask someone who is highly proficient in COM
technology for more help. Thus, I recommend adding a COM
tag to the question.
Edit(1) - I've found a good tutorial on the subject: