NetTalk Central

Author Topic: Drawing on form images  (Read 3021 times)

johncorry

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Email
Drawing on form images
« on: May 18, 2015, 02:40:44 AM »
I have an image on a form and I want to drop a mark on the image using a mouse click. I have setup the Captcha example source code which is working with BMP images but cant call it from the form. Adding this as a procedure in 'on click'  gives page not available. So I have 3 problems seeking advice
1. Is there some way I can call up the captcha source code with a click on the form image.
2.  Can I pass the xy cordinates across accurately
3  I cant get FreeImage to compile . Can I use FreeImage in captcha as I would like to work with png files
Thanks
John

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Drawing on form images
« Reply #1 on: May 18, 2015, 05:54:26 AM »
Hi John,

>> 1. Is there some way I can call up the captcha source code with a click on the form image.

The capatcha is just an image. So the form needs to "request the image" - and presumably you would generate it at run time.
The Capatcha example sort of does this already - albeit in that example the image is not "hidden to begin with". But I guess un-hiding the field is the same as for any other field.

>> 2.  Can I pass the xy cordinates across accurately

I'm not sure what this means. I think you mean you want to know where the user clicked on the image? You would need to write some JavaScript to do that - or possibly create an ImageMap from the image. Both would require a bit of work on your side.

>> 3  I can't get FreeImage to compile.

more information would be needed to comment. Do you have the FreeImage extension installed? Is the DLL in the app folder?


>> Can I use FreeImage in captcha as I would like to work with png files

yes.

cheers
Bruce