Guide for C#
Core Document Formats
Additional Features
Rubber Stamp Annotation

C# Imaging - Rubber Stamp Annotation Control

Visual C# .NET Rubber Stamp Annotator Image SDK for Rubber Stamp Annotation

Visual C#
Home > .NET Imaging SDK > C# > Rubber Stamp Annotating
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

C# Rubber Stamp Annotation Introduction
Have you ever thought of adding a digital signature or custom rubber stamp to source document image file using Visual C# code? RasterEdge C#.NET rubber stamp annotator control add-on, an easy to use and multifunctional .NET solution, will help you finish this custom rubber stamp annotating task in an extremely easy way. This professional rubber stamp annotator library toolkit can add custom rubber stamp to document image file perfectly in .NET Framework 2.0 (or above) applications.
Related .net document control helps:
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net mvc display tiff: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net mvc display tiff: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
Using this RasterEdge rubber stamp annotator control, C# developers can easily add a text rubber stamp on source file in .NET class applications, including both Web and Windows applications. Here we recommend other RasterEdge annotating controls, which can also help developers add other annotations to source document image file by C# code, like Visual C# .NET callout annotator control and text annotating library component.
From this online tutorial page for adding rubber stamp annotation to source document or image file, you will get detailed guidance on rubber stamp annotation by Visual C# code. The following is a quick navigation of this C#.NET tutorial page.
  • Key features of this C#.NET rubber stamp annotating / annotator control SDK
  • Guidance on how to add rubber stamp annotation using RasterEdge rubber stamp annotator add-on
  • What is the method that this C# rubber stamp annotator toolkit has used to create rubber stamp annotation
  • Provide C# demo code for developers to add customized rubber stamp annotation in .NET project
  • C#.NET rubber stamp annotator control FAQs
C# Rubber Stamp Annotation Control Features
  • The text style of created rubber stamp annotation can be easily adjusted using separate C# command line
  • Created rubber stamp annotating object can be freely resized or moved by C# programming code
  • Generated rubber stamp annotation has a border whose color and width are user-defined by C# code
  • Free to fill the background of rubber stamp annotation with desired color using C#.NET
How to Use Rubber Stamp Annotator in C#
This section aims to answer your question on how to use this C#.NET rubber stamp annotator control for better rubber stamp annotation on document image file.
  1. Download the trial package of RasterEdge DocImage SDK for .NET where you can find this C#.NET rubber stamp annotating add-on;
  2. Open or create a C#.NET class application using Microsoft Visual Studio 2005 (or later version);
  3. Integrate following dlls of RasterEdge C#.NET rubber stamp annotator add-on into your C# class project as assemblies;
    • RasterEdge .Imaging.Basic.dll
    • RasterEdge .Imaging.Annotation.dll
  4. Find the "RasterEdge.Imaging License Manager.exe" in your downloaded trial package and run it to get evaluation license key;
  5. Copy created evaluation license key at your C# project bin folder;
  6. Now you can use RasterEdge rubber stamp annotator add-on to add high-quality rubber stamp annotation.
C# Method to Add Rubber Stamp Annotation
From this RasterEdge C#.NET rubber stamp annotating method listed below, you will know the detailed way that we use to create a rubber stamp annotation and that how we customize the color, text font or size of target rubber stamp annotation by C# code.
public static RubberStampAnnotation CreateRubberStampAnnotation(float x, float y, float w, float h, string text, 
Font font, AnnotationBrush fontBrush);public static RubberStampAnnotation CreateRubberStampAnnotation
(float x, float y, float w, float h, float cornerRadius, string text, Font font, AnnotationBrush fontBrush);
public static RubberStampAnnotation CreateRubberStampAnnotation(float x, float y, float w,
float h, float cornerRadius, string text, Font font,
AnnotationBrush fontBrush, AnnotationPen outline, AnnotationBrush fill);
Sample C# Code to Create Rubber Stamp Annotation
In this part, we offer a complete C# demo code, which you can use to create a fully-featured rubber stamp annotation in .NET class applications. As the outputting path of created rubber stamp annotation is not fixed, we here save created rubber stamp annotation to an image file.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using RasterEdge.Imaging.Annotation;
using System.Diagnostics;
using RasterEdge.Imaging.Annotation.Basic;

namespace RasterEdge.Imaging.Demo.Annotation
{
public class RubberStampAnnotationDemo
{
/*
*
*
* SDK Dependency:
* RasterEdge.Imaging.Annotation.dll
*
*
*/

public static void Test()
{
try
{
RubberStampAnnotation obj = new RubberStampAnnotation();

obj.Text = "This is a Text annotation"; //set the show text
obj.TextFont = new Font("Arial", 12.0F, FontStyle.Italic);//set text font

//set the property of filled font
obj.FontBrush = new AnnotationBrush();
obj.FontBrush.FillType = RasterEdge.Imaging.Annotation.FillType.Solid;//set filled font style
obj.FontBrush.Solid_Color = Color.DarkBlue;//set filled font color

// set annotation size
obj.X = 60.0F;
obj.Y = 45.0F;
obj.Width = 240.0F;
obj.Height = 40.0F;

obj.CornerRadius = 0.1F;//set corner radius, when the radius data is larger, the corner becomes rounder

//set annotation edge property
obj.OutLine = new LinePen();
obj.OutLine.Width = 5.0F;//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 the property of filled shape
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

string folderName = "C:/";
Bitmap img = obj.CreateAnnotation();
img.Save(folderName + "RubberStampAnnotation.png");
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
}
}
C#.NET Rubber Stamp Annotation Control FAQs
Q: I want to add an image rubber stamp annotation to my document file by Visual C# programming code. Can RasterEdge C#.NET rubber stamp annotator control help me achieve this task in .NET class application?
A: Sorry, the current version of RasterEdge C#.NET rubber stamp annotator control can only allow developers to add a text rubber stamp annotation on source document image file by C# code.


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