locked
where to start? create an image on the fly from other images RRS feed

  • Question

  • User-1255549113 posted



    Hi all


    I hope this is in the right forum thread...


    How do I create (or layer) a new image from  2 existing images with ASP.net on the fly?


    Does anyone have any examples or links to websites?


    or has anyone done this personally? any hints and tips?

    also can i put this code (to create it) in a user control? instead of an external page?


    Thanks


    Tuesday, October 12, 2010 9:31 PM

Answers

All replies

  • User1224194097 posted

    How do I create (or layer) a new image from  2 existing images with ASP.net on the fly?

    Do you mean merging images? If so, please check this code

    http://www.switchonthecode.com/tutorials/combining-images-with-csharp

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 12, 2010 10:30 PM
  • User-1255549113 posted

    i will look over that link shortly - thank you for the  reply


    what im am trying to do is build a "are you human" verification image


    but i wish to build it in the following way - i want to grab one existing image from the server, and display it as a different file name on the page (so bots cant check the file name) and display the image along with a drop down box.


    does that make sense?  note though, that i do not wish to generate letters or numbers, but i wish to display an image of an animal from my list of images that is randomly choosen.






    Tuesday, October 12, 2010 10:41 PM
  • User-1255549113 posted

    thanks for that link - its partially what I needed

    Wednesday, October 13, 2010 1:03 AM
  • User-1255549113 posted

    does anyone else have any ideas about this? (bump to top post)

    Thursday, October 14, 2010 7:06 PM
  • User-1573135047 posted

    You could create an aspx file that opens the file from the server and streams it back to the browser using response.binarywrite, then reference that aspx file in your img tag.


    Tuesday, October 19, 2010 8:27 AM
  • User-1255549113 posted

    thanks for the reply - the link above provided the best answer :D


    thanks heaps

    Tuesday, October 19, 2010 11:36 PM