J-Painter. Online drawing component.
    Product Home     Download     Purchase    

GUI features

The developer can define what drawing tools, colors, and controls to display, set up custom clip arts for insertion in the drawing. The GUI can be based on predefined templates or created in HTML and JavaScript.

See the examples: Sketch Map Medicine Diagram editors.

How to save the image.

The image can be delivered to the server by one of the following methods:

  • Using file upload. In that case the editor acts as a regular HTML form with a file field.
     
  • The image can be requested in JavaScript. The returned data is the image file encoded width BASE64 method.

The image destination depends on your server-side script which can save the image to a file, database, or send it by email. The script can be implemented in any language: PHP, ASP.NET, JSP, ColdFusion, Python, Perl, etc. (code examples are included in the download package).

How to show the editor on a web page

The editor can be placed on a web page in several lines of HTML code, for example:

<applet width="600" height="400" code="Painter.class" >
    <param name="load" value="images/myimage.jpg">
    <param name="save" value="save.php">
</applet>

Performance and compatibility

The editor's size is about 150 Kb. It doesn't communicate with the server during the drawing sessions.

The editor can load or save images without reloading the page that makes it friendly to AJAX context.

The editor is compatible with Java 1.4 or later. It has been successfully tested on Windows and Mac platforms with the following browsers: Internet Explorer, Firefox, Safari, Google Chrome, and Java versions 1.4, 1.5, 1.6.

Limitation: The editor can't process large image files (more then 4M pixels), but it can scale large images down to reasonable size at load time (if specfied).

 

Read the documentation

Download the editor & documentation
and try it on your server.


   J-Painter    ImageMARK    Net Imaging    |    Site Map    About    Contact