Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Creates a structured text, containing the given image.

Syntax

Syntax:image filepath
Parameters:
  • filepath: String - The format can be JPG or PAA (if no extension is given, PAA is assumed). The path can be:
    • Relative to the mission folder (if it starts with the path name or has no path at all).
    • Read from an addon (if it starts with a backslash).
    • Absolute (if it starts with a drive letter).
Return Value:Structured_Text

Examples

Examples:
Displays JPG image (from mission folder) in hint:
hint composeText ["Mission Image: ",image "civ.jpg"]
Displays PAA image (from addon folder) in hint:
hint composeText ["Addon Image: ", image "\vbs2\ui\data\flag_bluefor_co"]
Displays JPG image (from absolute path) in Dialogs StructuredText:
_ctrlStructText ctrlSetStructuredText parseText image "c:\bi\images\intro.jpg"

Additional Information

See also: Structured_Text, parseText, composeText, formatText, text
Multiplayer: 
Problems:See the note in .3Cimg.3E for limitations of using images with the hint command.

Notes