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