SMIL 1.1.2
Loading...
Searching...
No Matches
example-default-se.py
1
2import smilPython as sp
3
4im = sp.Image("lena.png")
5
6# set new default StrElt and save old one
7saveSE = sp.Morpho.getDefaultSE()
8sp.Morpho.setDefaultSE(sp.SquSE))
9
10# do something
11imd = sp.Image(im)
12sp.dilate(im, imd, 3)
13
14# restore old default StrElt
15sp.Morpho.setDefaultSE(saveSE)
16