class documentation
class ThumbnailMode(bb.Union): (source)
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.ThumbnailMode.strict: Scale down the image to fit within the given size. :ivar files.ThumbnailMode.bestfit: Scale down the image to fit within the given size or its transpose. :ivar files.ThumbnailMode.fitone_bestfit: Scale down the image to completely cover the given size or its transpose.
Method | is |
Check if the union tag is ``bestfit``. |
Method | is |
Check if the union tag is ``fitone_bestfit``. |
Method | is |
Check if the union tag is ``strict``. |
Class Variable | bestfit |
Undocumented |
Class Variable | fitone |
Undocumented |
Class Variable | strict |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |