Share via


Image.canLoad(String) Method

Definition

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.

Applies to