大家看看delphi的帮助中是这样说的。
OnProgress:
Note: The PercentDone parameter is only an approximation. With some image formats, the value of PercentDone may actually decrease from the value in previous events, as the graphic object discovers there is more work to do.
property IncrementalDisplay: Boolean;
Description
Set IncrementalDisplay to True on large compressed images that take a long time to load or on images that may be altered by a computationally slow process. When IncrementalDisplay is True, partial renderings of the image are drawn periodically during slow operations such as loading. Set IncrementalDisplay to False to wait until the entire operation is complete before drawing the image.
For some classes of graphic objects, an OnProgress event occurs at various points during slow operations. If IncrementalDisplay is True, the OnProgress event occurs immediately after the approximate image is drawn. If IncrementalDisplay is False, OnProgress occurs, but the image is not updated.
能不能触发OnProgress事件应该是与图形文件的格式有关,我试了一下,如果是jpeg图的话,
在OnProgress事件中是可以判断装入一个图形的多少的,而bmp图则根本没有触发OnProgress
事件。