Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

InputDraw

Summary: InputDraw, a Flash-based drawing tool
Version: 2009-05-07
Prerequisites: adobe flashplayer plugin (browser side)
Status: beta testing
Maintainer: Austin (austiny.cn(at)gmail.com)
Categories: Editing, Images

Questions answered by this recipe

How can I draw pictures in PmWiki without Java runtime?

Description

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.

Notes

You need to have flashplayer and javascript support in your browser to use this recipe.

Screenshot

Installation & Setup

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.

Example

http://www.parl.clemson.edu/~wuyang/Main/GuestBook

(:inputdraw inputdraw.svg 90% 300:)

Release Notes

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".

See Also

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.

Contributors

Comments

I'm having a bit of trouble with this working. I get an error Fatal error: Call to undefined function cbrequestargs() in /public_html/cookbook/inputdraw.php on line 16 when I try to save. any suggestions?

John (4/15/09)

The "CBRequestArgs" dependency is removed in the new version (2009-05-07). Please download the zip file.

Austin (5/7/09)

I'm having trouble with the save as well and I'm using the version non-commercial.v1.5. The app starts up ok but when I click the save button, the drawing disappears and I see that the uploaded svg file has zero content.

Young (12/25/09)

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:42 AM