Image.isValid

bool isValid() const @safe nothrow @nogc

Checks if this image has a valid handle.

Returns

true if the handle is non-null