Add TExt to any Image From and Save it to new file
  • First Import 

    Imports System.Drawing.Imaging

    then at page load method write this code

    Dim bitMapImage As Bitmap = New System.Drawing.Bitmap(("D:\Posts\Write Text on Image in\Write Text on Image in\Koala.jpg"))
    Dim graphicImage As Graphics = Graphics.FromImage(bitMapImage)
    graphicImage.DrawString("testing 1 2 3", New Font("Arial", 20, FontStyle.Bold), SystemBrushes.WindowText, New Point(0, 0))
    bitMapImage.Save("c:\bitmaptest.jpg", ImageFormat.Jpeg)

    for further details and related topics

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week