The units of the pixel positions in all properties and methods of dBarScan DLL are NOT absolute pixel positions. All values passed to the DLL or Control will be scaled by the actual height or width (in pixels) of the image provided in the dImage handle divided by the value specified in hiheight or hiwidth.
The setting selLeft to 100 will result in the actual pixel value of
100*dImage.Width/hiwidth
being used, and setting selTop to 100 will result in the actual pixel value of
100*dImage.Height/hiheight
being used.
Consequently coordinates passed to functions are only actual pixel coordinates if hiheight and hiwidth have been set to the actual height and width of the image in pixels.
This arrangement greatly simplifies the use of dBarScan as it avoids the programmer having to determine the absolute dimensions of a bitmap. For example, when an image is loaded into a picture box or StdImage, the height and width of those objects may be passed to dBarScan as hiheight and hiwidth, and subsequent functions can use position values derived from the picture box or StdImage.