parse_from_filename_with_extension method

parse_from_filename_with_extension

Returns an Image2DFormat value that corresponds to the file extension extracted from the specified filename.

def parse_from_filename_with_extension(cls, filename):
    ...
Parameter Type Description
filename str Arbitrary filename, can be a relative or full path.

Returns: Image2DFormat: Image2DFormat value. Returns Image2DFormat.undefined if the extension cannot be recognized.

See Also