#include "ltwrappr.h"
virtual L_INT LFile::BrowseDirCallBack(pLBitmap, pszFilename, pFileInfo, nStatus, nPercent)
LBitmapBase *pLBitmap; |
pointer to an LBitmapBase object |
L_TCHAR * pszFilename; |
pointer to the filename |
pFILEINFO pFileInfo; |
pointer to the file info structure |
L_INT nStatus; |
status code |
L_INT nPercent; |
percentage completion of a file load |
Handles the thumbnails generated by calling the LFile::BrowseDir function.
Parameter | Description | |
pLBitmap | The pointer to the LBitmapBase object that references the thumbnail generated by LFile::BrowseDir. You can copy this bitmap, save it to file, insert it into a LEADTOOLS ImageList Control, or otherwise process it as needed in your application. | |
pszFilename | Character string containing the filename from which this thumbnail was generated. | |
pFileInfo | Pointer to a FILEINFO structure containing information about pszFilename. | |
nStatus | Status code. If an error occurred during thumbnail generation, this will be < SUCCESS. Possible values are: | |
Value | Meaning | |
BROWSE_LOADING | [2] Indicates image is being loaded, see nPercent. | |
BROWSE_SKIPPED | [3] Indicates image was skipped because it was larger than the specified range in LFile::BrowseDir. | |
BROWSE_PRELOAD | [4] Indicates that LEADTOOLS has found a file and is about to determine the file format. It will then attempt to create a thumbnail for it. If the user wishes to avoid the internal file information processing, return ERROR_FILE_FORMAT. This will cause LEADTOOLS to skip the file. | |
nPercent | Represents the percentage completion of a file load when nErrorCode is equal to BROWSE_LOADING. |
> 0 |
The function was successful, and returns the handle to the ImageList Control window. |
< 0 |
An error occurred. Return Codes |
You must return SUCCESS to continue browsing for supported image files. The value you return from this callback will also be returned from LFile::BrowseDir.
Required DLLs and Libraries
LTFIL For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
LFile::BrowseDir, LFile::Load, LFile::ReadStamp, LFileSettings::SetLoadResolution, LFileSettings::SetPCDResolution, LFileSettings::SetWMFResolution, LFileSettings::SetWMFResolution |
Topics: |
For an example, refer to LFile::BrowseDir.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.