image: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatted notes)
(exxample)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Structured Text]] <nowiki>=</nowiki> '''image''' filename |= Syntax
| '''image''' filename |= Syntax


|p1= filename: [[String]] |= Parameter 1
|p1= filename: [[String]] |= Parameter 1
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1 = <code>_txt1 = [[image]] "data\isniper.paa";</code> |= Example 1
|x1 = <code>[[hint]] [[composeText]] ["Image: ", [[image]] "\a3\Data_f\Flags\flag_Altis_co.paa"];</code> |= Example 1
|x2 = <code>[[hint]] [[str]] ([[composeText]] ["Image: ", [[image]] "\a3\Data_f\Flags\flag_Altis_co.paa"] == [[parseText]] "Image: <img image='\a3\Data_f\Flags\flag_Altis_co.paa'/>"); // true</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[parseText]], [[text]], [[composeText]] |= See also
| [[parseText]], [[text]], [[composeText]], [[lineBreak]] |= See also


}}
}}

Revision as of 20:54, 13 January 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Creates a structured text containing the given image.
Groups:
Uncategorised

Syntax

Syntax:
image filename
Parameters:
filename: String
Return Value:
Structured Text

Examples

Example 1:
hint composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"];
Example 2:
hint str (composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"] == parseText "Image: <img image='\a3\Data_f\Flags\flag_Altis_co.paa'/>"); // true

Additional Information

See also:
parseTexttextcomposeTextlineBreak

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on March 21, 2009
Spooner
Although there is a dedicated image command, parseText gives more options: _imageText = parseText "<img size='5' color='#ff0000' image='fish.paa'/>"

Bottom Section