Image Type Identification

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques > Pictures >

Image Type Identification

Previous pageReturn to chapter overviewNext page

VPE identifies the type of an image by checking the file suffix (i.e. ".tif" or ".jpg", etc.).

If the property PictureType is set to PIC_TYPE_AUTO (which is the default), VPE is also able to determine the image type not only by looking at the file suffix, but by examining the file header itself. So PIC_TYPE_AUTO will work in most cases even if the file suffix does not describe the image type. Example: you try to import a JPEG image with the name "test.001" and have set PictureType = PIC_TYPE_AUTO, even then VPE will detect that this is a JPEG file!

For technical reasons, VPE can not identify automatically the following formats by analyzing the file content: CUT, PCD, TARGA and WBMP. These formats have simply no identifyable header. Of course VPE will identify them correctly by the suffix of their file name.

In addition you can specify an image type explicitly by setting the property PictureType.