Name on Image

Thread is closed for posting
2 posts, 0 answers
  1. khansa
    khansa avatar
    8 posts
    Member since:
    Jul 2010

    Posted 25 Jul 2011 Link to this post

    Dear .

    Have a nice day.

    I am using RadUpload Control to upload images on server.

    I want to write domain Name on the image so automatically any user upload image, domain name apear on image, so my images become copyright.

    How can i do this?

    Thank you so much for your help.

  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 25 Jul 2011 Link to this post

    Hello Khansa,

    Please review the following post. Here is a sample code:

    //after the image is uplaoded use the following sample code to insert text into image
    Bitmap myBitmap = new Bitmap("path of the file");
    Graphics g = Graphics.FromImage(myBitmap);
    g.DrawString("My\nText1", new Font("Tahoma", 40), Brushes.White, new PointF(0, 0));
    myBitmap.Save("new file name");

    Hope it helps.

    All the best,
    Peter Filipov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top