コード例 #1
0
 def fromBytes(data) -> BytesImage:
     return BytesImage(data)
コード例 #2
0
 def fromBytes(data) -> BytesImage:
     return BytesImage(data, flash=True)
コード例 #3
0
 async def fromRemote(url, **extra) -> BytesImage:
     async with ClientSession() as session:
         async with session.get(url, **extra) as response:
             return BytesImage(await response.read())