parse_from_filename_with_extension method
Leave feedback
On this page
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.
- class
Image2DFormat
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.