4 import gfxprim
.core
as core
5 import gfxprim
.loaders
as loaders
6 import gfxprim
.filters
as filters
10 print("usage: invert.py image")
14 img
= loaders
.Load(sys
.argv
[1])
15 # Invert image in-place
16 img
.filters
.Invert(img
);
17 # Save result into png
18 img
.loaders
.SavePNG("out.png")
20 if __name__
== '__main__':