Image.canLoad(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether an image file exists and can be opened.
public:
static int canLoad(System::String ^ _filename);
public static int canLoad (string _filename);
static member canLoad : string -> int
Public Shared Function canLoad (_filename As String) As Integer
Parameters
- _filename
- String
The name and path of the file to check.
Returns
1 if the image is found and can be opened; otherwise, 0.