Share via


Image::canLoad Method

Determines whether an image file exists and can be opened.

Syntax

client public static int canLoad(str filename)

Run On

Client

Parameters

  • filename
    Type: str
    The name and path of the file to check.

Return Value

Type: int
1 if the image is found and can be opened; otherwise, 0.

See Also

Image Class

Image::validResource Method