Guide for VB.NET
Core Document Formats
Additional Features
Draw Text

VB.NET Imaging - Draw Text on Image Using VB.NET

Complete Visual Basic .NET Guide for Drawing Text on Image with .NET Library

Home > .NET Imaging SDK > VB.NET > Draw Text on Image
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

Among all the image processing and editing control libraries of RasterEdge .NET Image SDK, there is a special Visual Basic .NET image drawing DLL component, which is designed for VB.NET developers to easily create & insert text onto your local images, including PNG, JPEG, GIF, TIFF and BMP.
Related .net document control helps: excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser. image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C# sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET document viewer: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
This library SDK is written in C# managed code, and it provides full compatibility with .NET Framework (2.0 and above supported). If you have installed Microsoft Visual Studio (2005 and above), you can instantly integrate this library toolkit into your Visual Basic .NET imaging processing program, for example, a VB.NET Windows Form application. Then you can have fun drawing any text onto your local images.
Moreover, this VB.NET imaging control library does not just allow you to draw text on images, it also offers flexible settings for you to adjust the text properties, such as font type, font size, font style, and brush color, etc. After all the editing, you can directly save the images to your local files for future processing. All of these functions and features are available just to make sure that you can create the best picture with this library SDK.
This page will concentrate on how to draw text on an image in a Visual Basic .NET image editing application. Listed below are the main parts for this page layout:
  • Method for drawing text on an image in a Visual Basic .NET imaging program
  • Sample codes for printing text on an image in a Visual Basic .NET imaging application
  • More tutorials recommended for Visual Basic .NET image editing library toolkit
Image Text Drawing VB.NET Method
If you have a picture that you want to add some texts on, and you don't have Adobe Photoshop or any other similar software installed, what can you do? You can have a try with this RasterEdge .NET Image SDK which provides an easy to use image drawing component for drawing & printing text onto your local images in many formats like png, jpeg, gif, bmp, tiff.
Inside the following code tab is the Visual Basic .NET method for adding text on images with RasterEdge image processing and drawing library. Create a VB.NET imaging application in your Visual Studio first, and then you can freely use the method below in your program.
Public Sub TextDrawing(s As String, font As Font, brush As Brush, point As PointF)
End Sub
Image Text Drawing VB.NET Codings
In the following code tab, we will show you a code snippet for drawing text on a local picture with Visual Basic .NET programming language. The VB.NET sample code will take you to load and open an image in your local directory first ("1.jpg" in disk C), then add your customized text (setting the regular font properties), and finally output the edited image to your local file with user defined file name.
Please note that you can change some of the Visual Basic .NET codings if necessary. For example, you can adjust the text font, font size, font type (regular, bold, italic and so on), and brush color for the text. Make sure you have put the sample jpeg image to disk C for successful debugging, or you can use you own images with specified file path.
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Drawing

Dim Image As New RasterEdgeImaging()

Public Sub TextDrawing()
If True Then
Dim LoadImage As New Bitmap("C:\1.jpg")
Dim Text As Graphic = Graphics.FromImage(LoadImage)
Dim DrawFont As New Font("Arial", 16, FontStyle.Regular)
Dim DrawBrush As New SolidBrush(Color.Red)
Dim DrawPoint As New PointF(10F, 30F)
End If
End Sub
Text.TextDrawing = ("", DrawFont, DrawBrush, DrawPoint)
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster