Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Distorting Text

Distorting Text

Scheduled Pinned Locked Moved ASP.NET
graphicsquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Randal Vance Cunanan
    wrote on last edited by
    #1

    Hi... im trying to emulate a simple captcha control. I wanted to distort a text generated by Graphics.DrawText() method. Or is there a better way to make this? Thanks a lot.

    N G 2 Replies Last reply
    0
    • R Randal Vance Cunanan

      Hi... im trying to emulate a simple captcha control. I wanted to distort a text generated by Graphics.DrawText() method. Or is there a better way to make this? Thanks a lot.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Rue Leonheart wrote:

      is there a better way to make this?

      Without using GDI+? I don't think so.

      Best wishes, Navaneeth

      1 Reply Last reply
      0
      • R Randal Vance Cunanan

        Hi... im trying to emulate a simple captcha control. I wanted to distort a text generated by Graphics.DrawText() method. Or is there a better way to make this? Thanks a lot.

        G Offline
        G Offline
        Gary Stafford
        wrote on last edited by
        #3

        Have you considered using ImageMagick? We use it for a number of similar processes. Fred's ImageMagick Scripts contains a captcha sample script: http://www.fmwconcepts.com/imagemagick/captcha/index.php[^]

        Regards, Gary

        R 1 Reply Last reply
        0
        • G Gary Stafford

          Have you considered using ImageMagick? We use it for a number of similar processes. Fred's ImageMagick Scripts contains a captcha sample script: http://www.fmwconcepts.com/imagemagick/captcha/index.php[^]

          Regards, Gary

          R Offline
          R Offline
          Randal Vance Cunanan
          wrote on last edited by
          #4

          Can you post me a link for a tutorial on how to use scripts in an ASP.NET page? Thanks for the help.

          G 1 Reply Last reply
          0
          • R Randal Vance Cunanan

            Can you post me a link for a tutorial on how to use scripts in an ASP.NET page? Thanks for the help.

            G Offline
            G Offline
            Gary Stafford
            wrote on last edited by
            #5

            I have not used that specific captcha technique I mentioned, but I do use ImageMagick (IM) with ASP.NET. I have a pretty basic article on COde Project about generating previews from uploaded images with IM, Using ImageMagick to Create Previews and Thumbnails from Uploaded Images[^]. This is similar to what you are trying to do by creating a dynamic image and return it to the browser. The key method is CallImageMagick(string fileArgs). You pass your argument, such as the captcha command, which defines the distortions and the output path of the file. The random string used to create the captcha using IM would be stored and used to verify the user response to the captcha challenge. IM is easy to download and install. The latest update which I just installed on our server was "ImageMagick-6.6.0-7-Q16-windows-dll.exe". Make sure to check the last install option - "Install ImageMagickObject OLE Control...", so that MagickCMD.exe will be installed. You will need to provide the path to this file in your code; see my article. There are several other good articles on CodeProject about using IM with ASP.NET. That is where I learned about it.

            Regards, Gary

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups