Questions answered by this recipe
How can I draw pictures in PmWiki without Java runtime?
InputDraw is an Easy, Cross-Browser, Form Integrated Flash Draw Widget.
It is developed and maintained at http://www.mainada.net/inputdraw, which provides a simple way of enjoying online drawing. It supports viewing, editing and saving SVG image format.
With this recipe, InputDraw can be easily integrated into PmWiki as an online paintor and a SVG image viewer.
Installation & Setup
- Add include_once("
$FarmD/cookbook/inputdraw.php"); into your local/config.php
How to Use
Simply use "
(:inputdraw filename.svg:)" wherever you want to use InputDraw. Press Save button below the canvas when you are done drawing. (Please note that you will need upload authorization of current Group/Page to save image file.)
If you want to use InputDraw as a viewer, use "
(:inputdrawview filename.svg:)" instead.
More Advanced Usage
The Markup inputdraw and inputdrawview takes four parameters:
(:inputdraw filename.svg width height background_image_url:)
Note that width, height and background_image_url are optional.
width and height should be a valid integer number or a percentage. background_image_url should be a valid address to an image file.
(:inputdraw inputdraw.svg 90% 300:)
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
License (contained in the download is the free version)
- Free Non-Commercial License (from http://www.mainada.net/inputdraw)
The non-commercial version is entirely free. You can use it as much as you like it. We do encourage you to make something of it. Incorporate it in your non-commercial projects.
- Commercial License
A commercial license needs to be purchased from widget author's website.
- InputDraw Widget: http://www.mainada.net/inputdraw
- This Recipe: Austin
See discussion at InputDraw-Talk