Skip to content

Commit

Permalink
update core Image docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kived committed Jun 8, 2016
1 parent 25540d5 commit 4d42804
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions kivy/core/image/__init__.py
Expand Up @@ -451,12 +451,13 @@ class Image(EventDispatcher):
added. added.
:Parameters: :Parameters:
`arg` : can be a string (str), Texture or Image object. `arg` : can be a string (str), Texture, BytesIO or Image object
A string is interpreted as a path to the image to be loaded. A string path to the image file or data URI to be loaded; or a
You can also provide a texture object or an already existing Texture object, which will be wrapped in an Image object; or a
image object. In the latter case, a real copy of the given BytesIO object containing raw image data; or an already existing
image object will be returned. image object, in which case, a real copy of the given image object
`keep_data` : bool, defaults to False. will be returned.
`keep_data` : bool, defaults to False
Keep the image data when the texture is created. Keep the image data when the texture is created.
`scale` : float, defaults to 1.0 `scale` : float, defaults to 1.0
Scale of the image. Scale of the image.
Expand All @@ -465,6 +466,10 @@ class Image(EventDispatcher):
`anim_delay`: float, defaults to .25 `anim_delay`: float, defaults to .25
Delay in seconds between each animation frame. Lower values means Delay in seconds between each animation frame. Lower values means
faster animation. faster animation.
`ext`: str, only with BytesIO `arg`
File extension to use in determining how to load raw image data.
`filename`: str, only with BytesIO `arg`
Filename to use in the image cache for raw image data.
''' '''


copy_attributes = ('_size', '_filename', '_texture', '_image', copy_attributes = ('_size', '_filename', '_texture', '_image',
Expand Down

0 comments on commit 4d42804

Please sign in to comment.