Home >
.NET Imaging SDK >
VB.NET >
Hotspot Annotating
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!
RasterEdge Visual Basic .NET image annotating control is one of the consisting component DLLs from the .NET Image SDK. This library is a Windows Form component written in managed Visual C# .NET code for developers to add flexible and powerful image annotating functionality, such as hot spot annotation.
convert pdf to image vb.net free,
pdf to jpg c# open source,
vb.net print pdf,
print pdf file using asp.net c#,
c# itextsharp convert pdf to image,
asp.net pdf writer.
With this library SDK integrated into your imaging program, you can easily annotate, mark up, create, draw and visualize / display different kinds of annotation objects onto your images and documents.
Related .net document control helps:
asp.net word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net pdf page:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
Besides simply adding hotspot annotation directly onto your images and files with this Visual Basic .NET library, developers are also provided with flexible options for property setting so that you can resize, rotate, move and locate / place the annotations on your images.
how to rotate a pdf in c#,
itextsharp pdf to image converter c#,
pdf watermark c#,
itextsharp c# pdf page number,
open pdf file visual basic 2010,
vb.net code to convert pdf to word,
pdf to html vb.net.
Moreover, with the full version of this Visual Basic .NET image annotating control, you will find it had never been so easy to set the annotation shape, fill type, fill colors, outline color, and outline width for different modes (before and after it is activated).
If you are not looking for hotspot annotation, RasterEdge image annotating library also provides other annotation options. You can go to corresponding page listed below:
From this guiding page you will learn how to create a hotspot annotation in a Visual Basic .NET image processing application. Introduction and instructions will be provided through the following sections:
- Visual Basic .NET hotspot image annotation library SDK introduction
- Visual Basic .NET method for printing hotspot annotation for pictures
- Visual Basic .NET full demo codings for adding hotspot annotation on an image
VB.NET Image Hotspot Annotation Overview
- Designed to help Visual Basic .NET developers to add hotspot annotation to images
- Easy to control hotspot annotation size by setting object width and height in VB.NET
- Provides settings to adjust annotation fill type and color as you wish
- VB.NET codes for customizing outline (hotspot annotation brush / edge) type, color, and width
- Support setting different hotspot annotation styles before and after its activation with VB.NET codings
- Major image formats for hotspot annotating are png, jpeg, gif, tiff and bmp
VB.NET Method for Image Hotspot Annotation
RasterEdge Visual Basic .NET image annotating library SDK is a mature and easy to use .NET image processing assemblies which enable users to create & print a hotspot annotation onto an image and to adjust various settings like resizing, removing, etc.
The Visual Basic .NET demonstrates how to create a hotspot annotation on images. If you have installed Microsoft Visual Studio, you can start now by building a Windows application for image processing, and apply the method displayed below.
Public Shared Function
CreateHotSpotAnnotation(x As Single, y As Single, w As Single, h As Single, activeOutline As AnnotationPen, activeFill As AnnotationBrush, _
outline As AnnotationPen, fill As AnnotationBrush) As HotSpotAnnotation
End Function
Public Shared Function
CreateHotSpotFreeHandAnnotation(points As LinePoint(), activeOutline As AnnotationPen, activeFill As AnnotationBrush, outline As AnnotationPen, fill As AnnotationBrush) As HotSpotFreeHandAnnotation
End Function
VB.NET Codes for Image Hotspot Annotation
If you have installed .NET Framework 2.0 or above, and Microsoft Visual Studio 2005 or later version, you have meet the basic requirements regarding the configuration environment to integrate RasterEdge Visual Basic .NET into your imaging program. This .NET imaging editing toolkit can enable you to create hotspot annotation on images by using Visual Basic .NET programming language.
Currently this control library supports annotating images with general hotspot and freehand hotspot. General hotspot allows you to create hotspot with generally used shapes like rectangle, ellipse, polygon, etc. While freehand hotspot enables you to draw freehand annotations to images using VB.NET.
VB.NET Codes to Create a Hotspot Annotation:
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports RasterEdge.Imaging.Annotation
Imports System.Diagnostics
Imports RasterEdge.Imaging.Annotation.Basic
Namespace annotation_trial
Public Partial Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub button1_Click(sender As Object, e As EventArgs)
Dim obj As New HotSpotAnnotation()
' set annotation size
obj.X = 45F
obj.Y = 57F
obj.Width = 40F
obj.Height = 60F
'set filled shape property
obj.Fill = New AnnotationBrush()
obj.Fill.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set filled shape style
obj.Fill.Solid_Color = Color.Gray
'set filled shape color
'set annotation edge property
obj.OutLine = New AnnotationPen()
obj.OutLine.Width = 2F
'set annotation edge width
obj.OutLine.Brush = New AnnotationBrush()
obj.OutLine.Brush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set annotation edge style
obj.OutLine.Brush.Solid_Color = Color.Blue
'set annotation edge color
'set filled shape property when annotation is active
obj.ActiveFill = New AnnotationBrush()
obj.ActiveFill.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set filled shape style
obj.ActiveFill.Solid_Color = Color.Gray
'set filled shape color
'set edge property when annotation is active
obj.ActiveOutLine = New AnnotationPen()
obj.ActiveOutLine.Width = 2F
'set edge width
obj.ActiveOutLine.Brush = New AnnotationBrush()
obj.ActiveOutLine.Brush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set edge style
obj.ActiveOutLine.Brush.Solid_Color = Color.Blue
'set edge color
Dim folderName As String = "C:/"
obj.Active = False
Dim img As Bitmap = obj.CreateAnnotation()
img.Save(folderName & "HotSpotAnnotationInactive.png")
obj.Active = True
img = obj.CreateAnnotation()
img.Save(folderName & "HotSpotAnnotationActive.png")
End Sub
End Class
End Namespace
VB.NET Codes to Create a Freehand Hotspot Annotation:
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports RasterEdge.Imaging.Annotation
Imports System.Diagnostics
Imports RasterEdge.Imaging.Annotation.Basic
Try
Dim obj As New HotSpotFreeHandAnnotation()
'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))
'set filled shape property
obj.Fill = New AnnotationBrush()
obj.Fill.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set filled shape style
obj.Fill.Solid_Color = Color.Blue
'set Filled shape color
'set filled shape property when annotation is active
obj.ActiveFill = New AnnotationBrush()
obj.ActiveFill.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set filled shapes style
obj.ActiveFill.Solid_Color = Color.White
'set Filled shapes color
'set edge property
obj.OutLine = New AnnotationPen()
obj.OutLine.Width = 2F
'set edge width
obj.OutLine.Brush = New AnnotationBrush()
obj.OutLine.Brush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set edge style
obj.OutLine.Brush.Solid_Color = Color.Blue
'set edge color
'set edge property when annotation is active
obj.ActiveOutLine = New AnnotationPen()
obj.ActiveOutLine.Width = 2F
'set edge width
obj.ActiveOutLine.Brush = New AnnotationBrush()
obj.ActiveOutLine.Brush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid
'set edge style
obj.ActiveOutLine.Brush.Solid_Color = Color.Red
'set edge color
Dim folderName As String = "C:/"
obj.Active = False
Dim img As Bitmap = obj.CreateAnnotation()
img.Save(folderName & "HotSpotFreeHandAnnotationInactive.png")
obj.Active = True
img = obj.CreateAnnotation()
img.Save(folderName & "HotSpotFreeHandAnnotationActive.png")
Catch ex As Exception
Debug.WriteLine(ex.Message)
End Try
Recommend this to Google+