SMIL 1.1.1
Loading...
Searching...
No Matches
numpy_np2sp.py
1import smilPython as sp
2import numpy as np
3
4# create a 10x10 NumPy array
5a = np.array(range(100), 'uint8')
6a = a.reshape(10, 10)
7
8# creates a Smil image and set it's content to "a"
9img = sp.Image()
10img.fromNumpyArray(a)