←Select platform

LoadThumbnails(String,String,RasterThumbnailBrowserLoadFlags) Method

Summary

Browses the specified directory for supported images, and generates thumbnails for each image file that is found.

Syntax

C#
VB
C++
public void LoadThumbnails(  
   string path, 
   string searchPattern, 
   Leadtools.Winforms.RasterThumbnailBrowserLoadFlags flags 
) 
Public Overloads Sub LoadThumbnails( _ 
   ByVal path As String, _ 
   ByVal searchPattern As String, _ 
   ByVal flags As Leadtools.Winforms.RasterThumbnailBrowserLoadFlags _ 
) 
public: 
void LoadThumbnails(  
   String^ path, 
   String^ searchPattern, 
   Leadtools.Winforms.RasterThumbnailBrowserLoadFlags flags 
) 

Parameters

path
The directory to browse.

searchPattern
The search string to match against the names of files in

path
The directory to browse.

flags
An RasterThumbnailBrowserLoadFlags enumeration that can be a combination of the following:

Value Description
RasterThumbnailBrowserLoadFlags.None Default mode, the method will return immediatly and the thumbnails are loaded in a background thread.
RasterThumbnailBrowserLoadFlags.Block The method will not return until all thumbnails are loaded.
RasterThumbnailBrowserLoadFlags.OnlyValidImageFiles Only valid image files are loaded. Any file that contains data not recognized by the Codecs object as a valid image file will not be loaded.
Remarks

Use the LoadThumbnails(String,String,RasterThumbnailBrowserLoadFlags) method to populate the RasterThumbnailBrowser control with the thumbnails of image files found in the directory specified by

path
The directory to browse.

Example

For an example, refer to RasterThumbnailBrowser.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.WinForms Assembly
Click or drag to resize