Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

How to stamp text & icons onto acquired images in Dynamic .NET TWAIN

Microsoft .NET Framework has its built-in method Graphics.DrawImage to add an image on another at the specified location.

Here is a simple sample in C#:

private void button2_Click(object sender, EventArgs e)
{
    short index = m_ImageCore.ImageBuffer.CurrentImageIndexInBuffer;
    System.Drawing.Bitmap original = m_ImageCore.ImageBuffer.GetBitmap(index);
    System.Drawing.Image icon = System.Drawing.Image.FromFile("<the path for the stamp>");
    Graphics g = Graphics.FromImage(original);
    g.DrawImage(icon, itop, ileft, iwidth, iheight);
    g.Dispose();
    m_ImageCore.ImageBuffer.SetBitmap(index, original);
}

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support