|
|
|
Examples for Draw
|
|
-----------------
|
|
|
|
Save image
|
|
^^^^^^^^^^
|
|
|
|
.. code-block:: python
|
|
|
|
def save_image():
|
|
doc = app.docs.new('draw', {'Hidden': True})
|
|
image = doc.paste()
|
|
path = '/home/mau/Pictures'
|
|
image.save(path)
|
|
doc.close()
|
|
app.msgbox('Image saved')
|
|
return
|