Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
#include "ltwrappr.h"
L_BOOL LFile::IsValid()
Determines whether the LFile object is ready to be used.
Returns
TRUE |
The LFile object is ready to be used. |
FALSE |
The LFile object is not ready to be used. |
Comments
Before you can use some of the file functions, a bitmap and a filename must be associated with the class object. Until you have associated a bitmap and a filename with the LFile object, the object is considered invalid.
The function will return TRUE only if both the filename and the bitmap have been set and are valid.
The following table describes the functions that require either the bitmap, filename, or both to be set:
Functions: |
Requirements: |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the bitmap to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the filename to be set | |
requires the bitmap to be set | |
requires the filename to be set | |
does not require either filename or bitmap to be set |
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.
See Also
Functions: |
Example
L_INT LFile__IsValidExample() { LBitmapBase LeadBitmap; LFile LeadFile; if (LeadFile.IsValid() == FALSE) LeadFile.SetBitmap(&LeadBitmap); return SUCCESS ; }