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