Visual C#.NET - Image Ellipse Annotation
Tutorial on How to Add Image Ellipse Annotation in .NET Projects using C# Code
Yiigo provides you with high-quality .NET imaging component SDK so developers can enjoy image processing experience such as image viewing, editing, rotating, annotating, reading, converting and printing. The package includes a special annotation dll which allows users to add annotation on jpeg, gif, png, pdf image formats and other files, as well as resize, modify, and remove the annotations.
This C# tutorial focuses on the Ellipse Annotation only. An ellipse annotation is an ellipse-shaped object with user-defined text placed inside. Simply follow the steps and the Visual C# sample codes demonstrated below and you can easily add an ellipse annotation on the test image.
C# Guide - How to Add Ellipse Annotation on Image C# Image Ellipse Annotation - Preparation
- Download .NET image controls: Firstly please download the product from the order email or the online free evaluation package for a test.
- Install .NET image controls: Then install the product by double clicking the exe file in the unzipped SDK.
- Activate .NET image controls: Now you can activate the license by entering your purchased serial number, or requesting an evaluation license first.
C# Image Ellipse Annotation - Start Now
- As for the minimum requirement, please verify that you have installed the Microsoft Visual Studio 2005 or later versions. Note that VS Express will also do.
- Now please start your MS Visual Studio and open your Visual C#.NET imaging project.
- Add the Yiigo.Image.Annotation.dll from the unzipped package to your C# image project.
- Enable the namespace in your project, and copy the following C# sample code to add an ellipse annotation on your image. We are taking a png image as an example.
- More image formats are supported like jpeg, gif, tiff, etc. You can also adjust annotation settings, such as flipping, rotating, resizing, text editing, etc.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Yiigo.Image.Annotation;
EllipseAnnotation myAnnotation = new EllipseAnnotation(); myAnnotation.AnnotationData = "Ellipse Annotation"; myAnnotation.Fill = new AnnotationBrush(Color.Blue); myAnnotation.Shadow = new AnnotationBrush(Color.Blue); myAnnotation.Location = new PointF(100, 100); myAnnotation.Size = new SizeF(160, 80); myAnnotation.Opacity = 0.75; annotationController1.CurrentLayer.Items.Add(myAnnotation); C# Image Ellipse Annotation - Settings & Parameters
- Location stands for the center point of the ellipse annotation, measured by the horizontal and vertical coordinates.
- Size stands for the width and height of the ellipse annotation, measured in pixel.
- With Color parameter, you can customize the color of the outline and ellipse background color.
- Opacity is the quality of the ellipse being opaque. Default is 1. Valid from 0 to 1.
C# Image Ellipse Annotation - Sample Image
Other C# Image Annotations | 
Products Overview Tech Specs Features Other Plugins Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner
|