Results 1 to 7 of 7

Thread: Capture image.

  1. #1
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Post Capture image.

    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]-
    Last edited by Snookerman; 09-13-2010 at 08:02 AM. Reason: link removed

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    You mean a file uploader, or to actually capture the users screen when on your site?
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    I mean, when they're on the VML editor 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.

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

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

  5. #5
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Code:
    <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]-
    Last edited by [Nicolas]; 09-13-2010 at 01:06 AM.

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    did you draw anything? I did a simple shape, and got a whole xml (vml, whatever) tree from the "Get code" button.

  7. #7
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    I'll try that
    EDIT: It worked! Now I just need a button that will take the code from that...
    Last edited by [Nicolas]; 09-13-2010 at 03:56 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •