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