Skip to content

Saving image with text on it in webfolder

Hima

Asked Feb 25, 2014, 7:48 PM EST3 answers
Share
LinkedInX
Hi,
 I am in trouble with my project my project is creating an event invitation and sending to guests. In that i need to display text on image by entering details in textbox, and save that image with text on it to display that image in other page(preview).

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    One way to do this is by using a third-party toolkit to load the image and then draw text over it, so that the text becomes part of the image's pixel data. LEADTOOLS can load images and draw text on to them and save the result to disk in Windows forms. You did not say what kind of image you are loading.  Keep in mind that if your image is 1 bit per pixel (black and white), then the text will have to be either black or white.  To overcome this, you can also use LEADTOOLS to increase the bits per pixel to allow for more colors before drawing the text.  You can find more information here:
    http://support.leadtools.com/CS/forums/2655/ShowPost.aspx

    Other posts you may want to refer to instead:
    http://support.leadtools.com/CS/forums/26947/ShowPost.aspx
    http://support.leadtools.com/CS/forums/3307/ShowPost.aspx
    http://support.leadtools.com/CS/forums/19249/ShowPost.aspx

    Robert
    0
  • 0
    hi Robert, Thank you for ur reply, actually i need to send an invitation created in one aspx page, and sending email id is given in another page. for this i need to save the image, with its venue details on it, so that i can send invitation with all details to the email entered in other page In this case, how can i save the image!! Plz reply me..
    0
  • 0
    The way I might do it is by using the same Lead tools library because our whole application is based on it. The first forum post I gave you actually saves the image after drawing text on it.
    The project uses a SaveFileDialog to ask the user for the output location. However, since your own project will be automated and you will not ask the user for the image location, you will simply generate the file name string at run time, then use the file name with the Save() method to save the image after you write the text on it.
    0