Guide for VB.NET
Core Document Formats
Additional Features
Freehand Line Annotaion

VB.NET Imaging - Add Freehand Annotation Using VB

VB.NET Programming for Creating Freehand Line Annotation on Doc and Image

VB.NET
Home > .NET Imaging SDK > VB.NET > Freehand Line Annotating
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

This VB.NET annotation library helps you to make annotations with graphics and text messages using VB.NET code. You can use this annotation library to add freehand line annotation on different images and documents, such as PDF, TIFF, PNG, BMP, etc. reduce pdf file size in c#, c# code to create barcode, read pdf in asp.net c#, how to merge multiple pdf files into one in c#, vb.net add text to pdf, tiff to bitmap c#. If this VB.NET annotation library is used, you are able to create freehand line annotation in VB.NET application without changing the original document or image.
Related .net document control helps:
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net edit pdf text color: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
This guide page will show you details of creating freehand line annotation in VB.NET application. If you want to use our annotation control to annotate your documents and images using C#.NET code, you can go to the C#.NET guide for creating freehand line annotation. The freehand line annotation can be edited in many ways, including relocating, resizing, rotating, deleting, changing color attributes and much more. find and replace text in pdf using itextsharp c#, how to add image in pdf using itext in c#, itextsharp excel to pdf example c#, how to generate pdf from database in c#, convert pdf page to bitmap c#, vb.net get pdf page count, vb.net convert tiff to pdf.
Freehand Line Annotation Control Overview in VB
  • It is easy to annotate image file with freehand line using VB.NET code.
  • Freehand line can be simply drawn as an annotation on documents, like PDF.
  • You are free to adjust the thickness of created freehand line in VB.NET.
  • The color of created freehand line is also user-defined in VB.NET.
  • You can use VB.NET code to control the shape & position of created freehand line.
  • Generated freehand line can be burnt on target image file using VB.NET.
  • Created freehand line annotation can be removed from target file easily.
  • Created freehand line annotation is quite clear in VB.NET imaging project.
VB.NET Code to Create Freehand Line Annotation
To create freehand line annotation in VB.NET application, you can use this annotation control for VB.NET. We provide free VB.NET annotation control trial version and detailed user tutorial online. This VB.NET annotation control is entirely compatible with Visual Studio 2005 or later versions. It runs well in Microsoft .NET Framework 2.0 or above. Generally, RasterEdge .Imaging.Basic.dll and RasterEdge .Imaging.Annotation.dll in the trial package need to be added to your project references for creating freehand line annotation.
Freehand annotation means that you can make any drawing on document or image as you want. You can use VB.NET demo code below to create freehand line annotation on target document file.
     Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports RasterEdge.Imaging.Annotation
Imports System.Diagnostics
Imports RasterEdge.Imaging.Annotation.Basic

Namespace RasterEdge.Imaging.Demo.Annotation
Public Class FreehandLineAnnotationDemo
'
' *
' *
' * SDK Dependency:
' * RasterEdge.Imaging.Annotation.dll
' *
' *
'

Public Shared Sub Test()
Try
Dim obj As New FreeHandLineAnnotation()
'create a new freehand line
'set Track points
obj.Points = New List(Of LinePoint)()
obj.Points.Add(New LinePoint(30F, 34F))
obj.Points.Add(New LinePoint(20.3F, 123F))
obj.Points.Add(New LinePoint(134F, 32F))
obj.Points.Add(New LinePoint(134F, 110F))

'set line size
obj.LinePen = New LinePen()
obj.LinePen.Width = 3F
'set line width
'set line property
obj.LinePen.Brush = New AnnotationBrush()
obj.LinePen.Brush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set line style
obj.LinePen.Brush.Solid_Color = Color.Blue
'set line color
'when the track has Closed loop, set the Closed loop property as below
obj.Fill = New AnnotationBrush()
obj.Fill.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set Closed loop style
obj.Fill.Solid_Color = Color.Pink
'ser closed loop color
Dim folderName As String = "C:/"
Dim img As Bitmap = obj.CreateAnnotation()
img.Save(folderName & "FreehandLineAnnotation.png")
Catch ex As Exception
Debug.WriteLine(ex.Message)
End Try
End Sub
End Class
End Namespace
In addition to create freehand line annotation in VB.NET application, our VB.NET annotation control also supports other types of annotations. In the following part, we will illustrate other main annotation types supported by this VB.NET annotator control add-on.


Recommend this to Google+


RasterEdge.com 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-2023 Raster Edge.com