Defined in pyglet.image
load
(filename, file=None, decoder=None)¶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: |