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 create a thumbnail viewer

There isn’t a built-in thumbnail for Dynamic .NET TWAIN. To show the thumbnails, you can put two Dynamic .NET TWAIN Viewers on the form. Below is just one possible way to do this.

  1. Create the Viewers and bind it with ImageCore.
m_CoreForImageViewer = new ImageCore();
m_CoreForImageThum = new ImageCore();
 
dsViewer.Bind(m_CoreForImageViewer);
dsViewerThum.Bind(m_CoreForImageThum);
  1. Add a function to update the thumbnail view with the original view.
private void UpdateImageInfo()
   {
       if (m_CoreForImageThum.ImageBuffer.CurrentImageIndexInBuffer >= 0)
       {
           if (this.m_CoreForImageViewer.ImageBuffer.CurrentImageIndexInBuffer < 0)
           {
               m_CoreForImageViewer.IO.LoadImage(m_CoreForImageThum.ImageBuffer.GetBitmap(m_CoreForImageThum.ImageBuffer.CurrentImageIndexInBuffer));
           }
           else
           {
               m_CoreForImageViewer.ImageBuffer.SetBitmap(this.m_CoreForImageViewer.ImageBuffer.CurrentImageIndexInBuffer, m_CoreForImageThum.ImageBuffer.GetBitmap(m_CoreForImageThum.ImageBuffer.CurrentImageIndexInBuffer));
           }
        }
   }

Note: you will need to update the image info whenever you load/edit/acquire the image.

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