Easy way to integtateDatamatrix reader to your application

Posted by Godsky under C# on 12/23/2012 | Points: 10 | Views : 852 | Status : [Member] | Replies : 0
1. Class discription
public class Result
public override string ToString()
public virtual sbyte[] Value { get; }
public virtual int X { get; }
public virtual int Y { get; }

public class Scanner
public Result DecodeFromBitmap(sbyte[][] map)
public Result DecodeFromImage(Bitmap im)
public Result DecodeFromImageFile(string file)
public bool RegisterDatamatrixReader(string strMail, string strRegCode)


2. Samples
2.1 Decode from Bitmap file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using aipsys.barcode.datamatrix.decoder;

namespace DatamatrixDecodeTest
{
class Program
{
static void Main(string[] args)
{
Scanner scanner = new Scanner();

System.Console.Write("Trial version will replace first char of output with '*'\n");
Result r = scanner.DecodeFromImageFile("c:\\large1.bmp");
if (r!=null)
System.Console.Write(r.ToString());
else
System.Console.Write("no barcode found");
}
}
}

for trial SDK, please visit http://www.aipsys.com for details




Responses

(No response found.)

Login to post response