Add TExt to any Image From vb.net 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 vb.net\Write Text on Image in vb.net\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)
    graphicImage.Dispose()
    bitMapImage.Dispose()

    for further details and related topics http://www.codecorner.somee.com/

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