You can use the AnnoObjSelectNext method for enumerating annotation objects drawn and you can retrieve information about selected object with AnnoObj… methods. For example you can get the object position (AnnoObjGetPos) and size (AnnoObjGetSize). Regards, Technical Su..
Author : TechnicalSupportTeam
Question: High resolution satellite images (300mb) are compressed to about 78mb by using geo tiff toolkit .Is there any possibility to compress these images even further using any other algorithms to be able to upload and download them to and from the net? Answer: The Black Ice TIFF SDK/ActiveX supports a variety of compression methods ..
Question: I am using Document Imaging SDK and want to know how i go about generating .jpg file…. which are the methods i need to be using. I want to Scan the file and save that as a .jpg Answer: You can use the Black Ice Image and Document Imaging SDK/ActiveX toolkits to scan directly ..
The files required for distribution of the Black Ice imaging toolkits are listed in the “Preparing Your Application For Shipping” section of the product documentation. Regards, Technical Su..
Adding an annotation pro grammatically is the same as adding an annotation with user interaction, the only difference is the positioning of the annotation, which is specific, either from user input or pro grammatically. You can check any of the included VB samples, or can take a look at the online annotation sample code: http://www.blackice.com/Help/Tools/Imag ..
The Black Ice Imaging Toolkits can be used to create web based applications. The toolkits include a handful of sample applications which demonstrate basic functionality. In some cases, you must use special versions of the ActiveX control methods which have been created specifically for use with Javascript, since JavaScript does not support the use of ..
Question: For one of my scanners, GetNameOfCapability always returns blank strings. Is this a TWAIN compatibility issue? Answer: The Black Ice Imaging Toolkits require a TWAIN compatible driver to be installed on the machine. We recommend checking with the manufacturer of the scanner to verify that the device is TWAIN compliant. You can also check ..
You should call the ScanInit method only once when you start working with the BiTwain control. This method initializes the twain dll as well as the Black Ice scanning components. Regards, Technical Su..
Question: How do I know what the custom zoom factor should be if I want to: fit image to width fit to height fit image (width and height) Answer: The zoom factor can be calculated based on the size of the image, the screen DPI and the size of your current window. If you just ..
You should use the Crop method to select a part of the image. The Crop method will return a new DIB. Transfer that new DIB into the clipboard. For common clipboard data type, please visit: http://www.blackice.com/Help/Tools/Image%20OCX%20webhelp/WebHelp/ Regards, Technical Su..
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 ..
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 ..
Issue: I’m using Fax C++ ActiveX and when I compile one of the samples that can use the Brooktrout board, the sample grays out the option to open a Brooktrout channel. Solution: To use Brooktrout channels, the system wants to load BTDLLS.DLL, which is a Brooktrout dll, but cannot find it. This issue applies to ..
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 ..