By default when printing an image which contains annotations, the annotations themselves are not printed along with the image. In order to print the annotation objects, you must do the following: In the case of the BiAnno.dll. – You can draw the annotation object to the printer dc with AnnoUIOnPaint function. See the OnFilePrint function ..
Category : Imaging Toolkit
Question: I’ve got an application that scans a page and displays the image in the BiDisp ocx control. The problem I’m having is when I scan another image I can’t load the new image. The control still displays the old image. Is there a way to reset the control so that it can accept a ..
Question: What is the proper way to deal with the btTwain controls twerror event in Visual Basic.net? Once I get any kind of error, I am unable to scan again until the application is restarted. Solution: If an unanticipated exception occurs during scanning, try to use the terminate action to uninitialize the scanner (closing data ..
If one intends to reach all of the annotation objects, one have to use the AnnoObjSelectNext method. One should use the AnnoObjDeselect method for deselecting the last selected object before using AnnoObjSelectNext again. If one use the AnnoObjDeselect method the AnnoObjSelectNext method will start from the beginning to select annotation objects. In this case one ..
1. You can verify if there are annotation objects in the image with the AnnoLoadFromTIFF method. If this method returns FALSE, the image doesn’t contain annotation objects. 2. Before burning (after loading image and annotations) you have to set some annotation properties. If you don’t do that, the annotation object will not burn into the ..
Question: When I display an image and then press the zoom-in or zoom-out Buttons, nothing happens. If I select an area of the image and it Zooms into that area, I find the zoom-in or zoom-out now work But sometimes in an unpredictable way. Answer: The problem was that the scale mode wasn’t set properly. ..
Yes, they do support ASP .NET and even include sample applications written in ASP .NET. The Black Ice Imaging Toolkits are a collection of standard Windows DLLs and OCX controls and can be used with any programming language capable of calling function from these types of components. Regards, Technical Su..
Question: We are doing Batch Scanning, and our users have a requirement that they can stop the scanning process at any moment. So we are calling the TWSCAN_TERMINATE function, without seeing what is happening at the scanner side. So if the page is in the middle of scanning, it shows paper jam detected. Answer: The ..
Question: Please suggest the right way to know scanner supports the ICAP_ORIENTATION capabilty or not. And how to set the scanner page orientation Answer: This is a sample code snippet for get/set the ICAP_ORIENTATION capability of the scanner. This code snippet is written in Visual Basic .NET 2005. Available values of the ICAP_ORIENTATION are: TWOR_ROT0 ..
Question: I’m trying to catch most errors now, like the feeder not being empty, etc. The problem is that I want the user to be able to receive the message, fix the problem and then click to scan again, but the scanner is still being held by some process and can’t be released. I get ..
If one intends to use the Thumbnail dialog, then one can use BiThumbnailDlg class in the DLL and use InitThumbnail in the OCX. In this way one can browse in directories and if needed, it can show only the first page of a multipage document. If one intends to expand a multipage document, use the ..
Please note: If one loads the image to DIB, it allocates memory for this automatically, but when one is finished with the image, it is required to free the allocated memory using the DropDIB method. Please take a look at our sample source codes for Twain scanning, for more information about DropDIB. Regards, Technical Support ..
If one would like to get the number of pages in the TIFF file, one can use the 2 functions below: 1. GetNumberOfImagesInTiffFile: This function has only one parameter the path and filename of the TIFF file. 2. NumberOfTiffImages: This function uses the opened TIFF file. (You can open the file with OpenTiffFile function). For ..
In order to retrieve the DPI of a TIFF image, One can use the GetTiffImageDPI function. One should use the GetTiffImageDPI function like this: LONG dwDPI; GetTiffImageDPI(hChain, nImage, &dwDPI); UINT wHorizontalDPI = LOWORD(dwDPI); UINT wVerticalDPI = HIWORD(dwDPI); The nImage parameter is the index of the page in the TIFF file. One can check the using ..
Scan into memory using Black Ice’s BiTwain.ocx control, the BiTwain control returns with a hDib object. One can use this hDib object as an input parameter for methods of BiDib.ocx without any conversion, because hDib is not a class. It is a handle to a device independent bitmap stored in the memory. For example: If ..
The number of pages of a memory TIFF can be retrieved by the NumberOfTiffImages function of BiTiff.dll. This function is not implemented in the BiTiff.ocx so one must use the dll function directly. The NumberOfTiffImages function gets the number of pages of the memory TIFF. Before calling this function the TIFF file should be opened ..
Issue: I´m trying to determine the number of pages inside a multipage-tiff which is stored inside a database. As far as I know, the only way to do this without creating a temporary file on disk is to call the method “NumberOfTiffImages” from the BiTiff.dll, via DllImport. I tried to make this work by modifying ..
The BiTiff.ocx should be registered on Windows 7 64-bit machines. Please check that the appropriate files are copied to your machine: BiTiff.ocx, BiTiff.dll, license dat file and license.dll. If the registration failed check the file dependencies using Dependency Walker. The Dependency Walker can be downloaded from (http://www.dependencywalker.com/). Check the dependencies of BiTiff.ocx and BiTiff.dll too. ..
Question: Why do I not see my scanners on 64 bit systems? I am using the 64 bit Document Imaging SDK. I do not see my scanner listed in the TWAIN source window. Answer: The 64 bit Document Imaging TWAIN interface will only work with 64 bit TWAIN scanner drivers. Most scanners use 32 bit ..
Problem: When Annotating the main image using the stamp(2nd control), while expanding the edges are not fine. Solution: Since the Stamp is an image, as the image is stretched, the edges become pixelated. In order to receive sharp edges, please try a higher resolution image as stamp. Regards, Developer Su..