Click or drag to resize

ThumbnailViewBeforeThumbnailLoad Event

Raised just before a thumbnail image is going to be created.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: (.NET 4.5.2, x86)
public event ThumbnailLoadEventHandler BeforeThumbnailLoad


Type: Atalasoft.Imaging.WinControlsThumbnailLoadEventHandler

Handle this event to override the thumbnail load process. By setting the Image property of the ThumbnailLoadEventArgs, you can load the image with customized decoder settings. If you are using a custom decoder that has a special method for obtaining thumbnails, write the thumbnail load code in this event handler.

The event can also be used to obtain a reference to the ProgressEventHandler for the image being loaded in order to show progress of each thumbnail as it's loaded.

The Cancel property of the ThumbnailLoadEventArgs can be set to true to prevent the thumbnail to be loaded into the control.

See Also