本文整理汇总了Python中collada.E.image方法的典型用法代码示例。如果您正苦于以下问题:Python E.image方法的具体用法?Python E.image怎么用?Python E.image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类collada.E
的用法示例。
在下文中一共展示了E.image方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from collada import E [as 别名]
# 或者: from collada.E import image [as 别名]
def __init__(self, id, path, collada = None, xmlnode = None):
"""Create an image object.
:param str id:
A unique string identifier for the image
:param str path:
Path relative to the collada document where the image is located
:param collada.Collada collada:
The collada object this image belongs to
:param xmlnode:
If loaded from xml, the node this data comes from
"""
self.id = id
"""The unique string identifier for the image"""
self.path = path
"""Path relative to the collada document where the image is located"""
self.collada = collada
self._data = None
self._pilimage = None
self._uintarray = None
self._floatarray = None
if xmlnode != None:
self.xmlnode = xmlnode
"""ElementTree representation of the image."""
else:
self.xmlnode = E.image(
E.init_from(path)
, id=self.id, name=self.id)