In the end I would like to modify Images with dynamo and import those into Revit.
Basically print text (Revit inofs) on images. So my approach was to import the Pillow llibrary form Pyhton and go from there.
So my first step was to import a simple python script and acces its function, but I faild. IronPython.Runtime.PythonFunction
There are lots of C# tutorials on stackoverflow for using this class, you’ll be able to translate it to python fairly easily. Remember to dispose the image once you’ve finished
It’s fun! Check out msdn for more info on the system.drawing namespace, any other questions are probably best directed at stackoverflow for this kind of thing