Defined in pyglet.image
Load an image from a file.
Note: | You can make no assumptions about the return type; usually it will be ImageData or CompressedImageData, but decoders are free to return any subclass of AbstractImage. |
---|---|
Parameters: |
|
Return type: | AbstractImage |