External image.
More...
|
def | __init__ (self, id="") |
|
def | load (self, file, format=None) |
|
def | embedded (cls, image, format=None) |
| Create an object from an image file. More...
|
|
def | linked (cls, filename) |
|
def | __init__ (self) |
|
def | data (self) |
|
def | to_dict (self) |
| Serializes into a JSON object fit for the Lottie format. More...
|
|
def | load (cls, lottiedict) |
| Loads from a JSON object. More...
|
|
def | find (self, search, propname="name") |
| Recursively searches for child objects with a matching property. More...
|
|
def | find_all (self, type, predicate=None, include_self=True) |
| Find all child objects that match a predicate. More...
|
|
def | clone (self) |
| Returns a copy of the object. More...
|
|
def | clone_into (self, other) |
|
def | __str__ (self) |
|
def | __new__ (cls, name, bases, attr) |
|
External image.
- See also
- http://docs.aenhancers.com/sources/filesource/
- Lottie JSON
-
Definition at line 83 of file assets.py.
◆ __init__()
def lottie.objects.assets.Image.__init__ |
( |
|
self, |
|
|
|
id = "" |
|
) |
| |
◆ embedded()
def lottie.objects.assets.Image.embedded |
( |
|
cls, |
|
|
|
image, |
|
|
|
format = None |
|
) |
| |
Create an object from an image file.
Definition at line 145 of file assets.py.
◆ guess_mime()
def lottie.objects.assets.Image.guess_mime |
( |
|
file | ) |
|
|
static |
◆ linked()
def lottie.objects.assets.Image.linked |
( |
|
cls, |
|
|
|
filename |
|
) |
| |
◆ load()
def lottie.objects.assets.Image.load |
( |
|
self, |
|
|
|
file, |
|
|
|
format = None |
|
) |
| |
- Parameters
-
file | Filename, file object, or PIL.Image.Image to load |
format | Format to store the image data as |
Definition at line 117 of file assets.py.
◆ file_name
lottie.objects.assets.Image.file_name |
◆ height
lottie.objects.assets.Image.height |
◆ id
lottie.objects.assets.Image.id |
◆ is_embedded
lottie.objects.assets.Image.is_embedded |
◆ path
lottie.objects.assets.Image.path |
◆ type
lottie.objects.assets.Image.type |
If "seq", marks it as part of an image sequence.
Definition at line 115 of file assets.py.
◆ width
lottie.objects.assets.Image.width |
The documentation for this class was generated from the following file: