WitsEnds logo
303.838.2089
home buttonsolutions buttonnews buttonsupport buttoncontact button

Delphi developers components
you are here: home > solutions > delphi components > tifimg 16/32 > faqs

Related topics

  • imaging software & hardware
  • check scanning
  • check scanners
  • back office conversion
  • remote deposit
  • document imaging
  • check 21 changes
  • Delphi developer's image components

TifIMG 16/32 FAQs

How do I install TifIMG 16/32?
Unzip TifIMG16 or TifIMG32 with Pkzip 2.04G or equivalent. If you have received the passworded, registered version, use the -s option. Run the SETUP.EXE program and choose a directory. The setup program will install DLLs in the /SYSTEM directory. See the readme file concerning issues relating to which DLLs to supply (and which component to use) depending on what functionality you desire.

In DELPHI 1, go to install components, 'Add' a component, and select the directory where you placed TifIMG. Install TifIMG.DCU (or TifIMG.PAS if you have the registered version), and perhaps TIFFONLY.PCU/PAS.  Your Component Library will recompile. If you get an Error 1157 (2.0 version) or "unable to load COMPLIB.DCL" (version 1.0) message, it means Delphi cannot find the DLLs for some reason.With other versions of Delphi, Add the package *.bpl instead. The name will vary by version - for instance Del5TIFF.bpl is for Delphi 5. Add the path to the library to the environment/library path.

With the component installed, open the IMGDEMO.DPR project to see all the functionality of TifIMG. There are right-mouse popup menus in several places, especially on a live image to perform special tasks. Use the Demo code to implement your own versions of these functions.

What is error 1157 which appears when loading the Delphi library?

Delphi 2.0 returns error 1157 when it cannot find some part of CMPLIB32.DCL, such as the DLLs for TifIMG. The Setup program should put them in the /System directory. Delphi needs to find them when it loads CMPLIB32.DCL. Check SETUP.LOG in your TifIMG directory to see where the setup program put the DLLs.

If you get this error, it is probably because you are using an old version and you should download a new version of the component.

Why does my image come up as a little dot or square?
See the RESIZE method of the IMGDEMO program. There is a function called SetDesignedSize which tells TifIMG what the desired size of the window is when it does a FitWindow or FitHeight function. Also, the component needs to know the dimensions of the Scrollbox in which it is placed (or the Panel, or whatever); this is set by TIFFImage1.ScrollBoxW or TIFFImage1.Scroll BoxH. If these are not set, the desired size will be a rectangle of (0,0,0,0).

How do I convert one image format to another?
In general, you read one form in and simply set the save name (LoadImage.SetSaveName :='myimage.pcx') and the component will take care of it. With JPEG you get to specify a Quality number (0..100), and with TIFF and DCX you can specify OVERWRITE to replace an existing file or otherwise append to (or create) a file, creating a multi-page file. If desired, right after calling LoadImage1.ImageFilename ... you can set LoadImage1.Visible :=FALSE to turn off display.

What if I want to load the image myself, then use the Manipulate features?
Since TifIMG is a descendant of TImage, you could certainly load the bitmap yourself. In fact, our fax product loads WinFax and BITFAX images this way. However, if you do this you need to tell the component that there is an image loaded and the function call is Loadimage.Imageloaded :=TRUE. You may also need to call the redraw method as well to force a redraw after something has changed.

How does the Pan window work?
The pan window is a dynamic thumbnail representation of the main image, and it can be used with any TImage, not just TifIMG. It will allow you to control the scroll location of the main scrollbox by means of a black rectangle on the pan window. To implement this, look carefully at the code for the mouse events in the pan window and the setup code for initializing it under the Create button in the demo.

What about Expand and Scale?
Expand is used if you have TIFF images (or CCITT images) that were created to be standard mode fax (200 x 100) and you wish to make them into normal resolution TIFF images (200 x 200). Scale allows you to take an image and re-scale it (usually down) to save space on disk. Often a 200 x 200 image (typically 1696 x 2196) can be scaled to 80% or maybe 60% with minimal loss of quality, but considerable disk space savings. If you are doing thousands of images, this adds up.

What DLLs do I ship with my application?
Check the SETUP.LOG file in the installation directory to see what files were installed in your case; it will show just what files were installed and where. This is what UNINSTALL uses to remove the application.

What I want to know is ... ?
Send us your questions and comments and we'll see what we can do for you.

See also

  • TifIMG features
  • TifIMG article
  • TifIMG specifications
  • TifIMG price
  • TifIMG purchase

Return to Delphi developers components main page >

Copyright © 1998 - 2007 WitsEnds Software .

| home | solutions | news | support | contact us |downloads |
| purchase | legal | resellers | privacy | about us | site map |