Skip to content

menu Image Line

menu Image Line {name} {x1} {y1} {x2} {y2} {colour} [width]

Also searchable as: menu Image Line

menu Image Line draws a straight line from x1, y1 to x2, y2 in an image. Positions are inside the image, 0, 0 being its top-left corner.

Parameter Meaning
name Name of an image created with menu Image Create.
x1, y1, x2, y2 The two ends.
colour A colour, see Colours: a name such as red or btnface, or a $BBGGRR number.
width Optional line width in pixels. Default: 1.
menu Clear
menu Window Size 84 84
menu Image Create pic 10 10 64 64
menu Image Line pic 0 0 63 63 red 2
menu Image Line pic 0 63 63 0 blue
menu Show
halt
  • 1.6: a negative second corner (x2, y2) is refused.
  • An invalid line width draws a 1-pixel line in 1.6 and nothing in 1.5.

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.

The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.