Log.CreatePictureConfiguration Method

Applies to TestComplete 14.93, last modified on October 12, 2021
This method is obsolete. See the Remarks section below.

Description

Use the CreatePictureConfiguration method to create an ImageConfiguration object. This object defines a set of image settings that can be used to post the image to the log or to save them to files.

After you have created this object, you can use its properties to specify the desired format settings. To apply the created configuration, call the Log.SetDefaultPictureConfiguration method.

Declaration

Log.CreatePictureConfiguration(ImageFormat)

ImageFormat [in]    Required    String    
Result An ImageConfigruation object

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

ImageFormat

A string that specifies the image format that you would like to configure.

The set of properties, which the created ImageConfiguration object will have, depends on the specified image format. For example, if you create a configuration for BMP images, the object will hold properties specific for the BMP format, if you create a configuration for PNG images, the object will contain properties specific to the PNG format.

To specify the image format, you can use one of the following string constants:

Constant Description
"BMP" BMP image configuration
"JPEG" JPEG image configuration
"PNG" PNG image configuration
"TIFF" TIFF image configuration
"GIF" GIF image configuration
"ICO" ICO image configuration
Note: Image adapter plugins installed in TestComplete extend this list of constants with the appropriate format name.

Result Value

An ImageConfiguration object that can be used to configure image format settings.

Remarks

The Log.CreatePictureConfiguration method is obsolete and supported for backward compatibility only. It is not displayed in the Code Completion window.

To create an image configuration object that specifies the format of images to be saved by using the Picture.SaveToFile method, use the Picture.CreatePictureConfiguration method.

To specify the format of images to be posted to the test log, configure your project properties.

See Also

Specifying Log Images Format
SetDefaultPictureConfiguration Method
SaveToFile Method
CreatePictureConfiguration Method
Image Settings Dialog
Image Adapters

Highlight search results