# Configuring VisionPro.ini

Some aspects of your VisionPro application behavior can be configured at initialization time. Use the VisionPro.ini file to control display settings.

Find VisionPro.ini in the Windows or WINNT directory of your root system drive. VisionPro.ini is a text file and you can use any text editor to edit it. Cognex recommends you make a copy of this file as a backup in case you want to revert to initial settings.

The VisionPro.ini file uses the following section to configure alpha-blending capabilties on video cards, as well as configuring size of interactive graphic handles, primarily for use on touch screens.

Copy

    [CogDisplay]
    AlphaBlend = Software
    DefaultGraphicHandleSize = 8

Some video cards misrepresent their alpha-blending capabilities, which may result in display problems. If you are having display problems, you may want to change the AlphaBlend setting. You can set AlphaBlend either to AutoDetect or to Software (the default) to let VisionPro do the blending. The AutoDetect setting results in faster display, but certain graphics (such as masks) may not display correctly with some video cards. The Software setting ensures that the display is always correct, but it may be slower.

The DefaultGraphicHandleSize setting controls the default size of all interactive graphic handles for all VisionPro applications on a given system. This allows you to set handle sizes in your application without writing any code or adding this setting to your VPP files. The default size is 8 pixels (and cannot be set to any value smaller than 8), and is set as an integer value (if a decimal value is used, such as 15.9, the decimal part will be ignored, becoming 15, instead). Hex formatting (e.g. 0x010) may also be used to set the size. There is not a maximum size, however, if a very large number is applied, it may be unusable in the application due to the limited display sizes of most touch screens.