Re: Creating pics on the web



On Thu, 29 Jun 2006 15:56:16 +0200, "rb" <me@xxxxx> wrote:

i am developing a claims input form. part of this form, the original paper
version, was to draw a brief picture of the accident.
Is there anyway in PHP, or other addied controld to achieve the same result.

You could probably do it in just PHP and HTML with image maps and using the GD
library to draw predefined shapes in response to clicks, but it'd be pretty
slow and need loads of server round trips.

Presumably you'd have some sort of template shapes like cars and lampposts;
the average user isn't going to be much good at drawing a picture with a mouse.

Next level up could be using Javascript to drag and drop elements around on
the page, which reduces server round trips but complicates it considerably.

Then there could be Flash or Java applet implementations; I don't know any
ready-made ones that might be suitable.

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • Re: Custom ScaleMode setting problem
    ... It sets up a picture box in the way that you require. ... In this way you can draw the finished graph at any physical location and size you require, opaquely or transparently, and you can draw it to the printer in a way that takes full advantage of the printer's high resolution. ... Private pOffsetX As Single, pOffsetY As Single ...
    (microsoft.public.vb.general.discussion)
  • Re: lines dont stay on form...
    ... Personally for such jobs I would draw ... On way to achieve what you're after and still use your existing "picture ... Private xCentre As Single, yCentre As Single ... Private Sub Label1_DblClick ...
    (microsoft.public.vb.general.discussion)
  • Re: Unknown pointer problem between Visual Basic and C
    ... Draw into a picture area. ... except drawing from Visual Basic (HDC seems to be wrong). ... I send to the "Visual Basic wrapper" built in C, dimensions and DC pointer ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Where to file one defgeneric for two classes and two packages
    ... Suppose I want to draw pictures and lines on a display. ... I just apply the draw method, but for lines, I may want to specify the ... Presumably your picture and line objects keep track of their own ... This is the kind of situation I envision calling a generic function ...
    (comp.lang.lisp)
  • Re: Resize form problem
    ... The second function is to draw some vertical lines as sort of grid ... 'Work out marker string and position ... I placed that in the Resize Event as well. ... you're loading an image into the Picture property of a Picture Box and then ...
    (microsoft.public.vb.general.discussion)