NIPO ODIN Version 5.17

*PICT (question option)

Purpose

Displays a picture.

Syntax

*PICT <filename|n|[expression]>

or

*PICT <n|[expression]> <"library name">

Description

Displays a picture on the screen. The default position of the picture is in the upper right corner. The file can also be part of a picture library. In this case the position is defined in the picture library. The *PICT command may also be used in combination with *PAGE, *INFO and *HELP.

Oictures in the following formats may be used:

  • BMP
  • JPG (normal and progressive encoding)

Arguments

filename
The file name of the image that must be displayed. If this file is not in the working directory a full or relative path name may be used. Note that screen resolution for respondents or interviewer workstations might vary. Always create a picture in the lowest resolution that is used for optimum results.

n|expression
A positive integer or expression that indicates the number of the picture in a picture library (P-file).

library name
The name of a picture library other than the default picture library. A default picture library is a library with the same name as the questionnaire: nameP.

Example 1

*QUESTION 1 *CODES 61 *PICT NipoSoftwareLogo.jpg





Have you seen this logo before?

1: Yes
2: No

This example displays a question with the picture NipoSoftwareLogo.jpg. The screen position of the picture cannot be set. Empty lines are used to reserve space to display the picture.


Embedded PNG Image Template (Styled)

Example 2

QUESTION 1 *CODES 61 *PICT 1
Have you seen this logo before?

1: Yes
2: No

This example displays a question with picture 1 from the picture library. The screen position of the picture can be changed in the Multimedia Library:


Embedded PNG Image Template (Styled)

Example 3

*QUESTION 1 *CODES 61 *PICT 1 "mylib" *PICT 3 "otherlib"

This example displays a question with picture 1 from the picture library mylib and picture 3 from the picture library otherlib.

See Also