View Full Version : Capture image.
[Nicolas]
09-12-2010, 11:32 PM
Hi. If you've been to my site, you've probably clicked on "Family Fun". You noticed I use an Image editor (from here) called VML editor. I cannot find an HTML, PHP, ASP/ASPX, etc. code for capturing an image. I was hoping that people could submit their images to me, but my site can't capture the image. Does anyone have a code I could use or maybe a (free) service I could use?
Help greatly appreciated. Thanks!
-[Nic]-
bluewalrus
09-13-2010, 12:26 AM
You mean a file uploader, or to actually capture the users screen when on your site?
[Nicolas]
09-13-2010, 12:30 AM
I mean, when they're on the VML editor (http://kapleenmusic.webfreehosting.net/editor.htm) page, at the click of a button, when they are going to submit an image, it will capture the screen, then they can fill out the form and submit it to me, and it will have the image they just drew with it. I know this is possible, I have seen this before.
the user's whole screen, or just the drawing area?
since there's a button to "Get Code", you could conceivably use javascript to click that button, copy the code, and post it to your server. I don't know enough about javascript to get you much further than that, but others here might be able to offer more help.
Too bad it's IE-only, though...
[Nicolas]
09-13-2010, 12:48 AM
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<style type="text/css">
v\:* { behavior: url(#default#VML);}
</style>
That's the code that will go in the Head (the Body was empty). But, will it catch the image?
I'll test it out.
Thanks :)
EDIT: Failed to work on a page. I don't think that's the full code. Can someone help please? Thanks :)
-[Nic]-
did you draw anything? I did a simple shape, and got a whole xml (vml, whatever) tree from the "Get code" button.
[Nicolas]
09-13-2010, 03:41 PM
I'll try that :)
EDIT: It worked! Now I just need a button that will take the code from that...
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.