Skip to content

menu Image Pos

menu Image Pos {name} {x} {y} [width height]

Also searchable as: menu Image Pos

menu Image Pos moves an image to x, y in the menu window. With width and height, it also resizes it, and what is drawn in it is stretched to fit.

Parameter Meaning
name Name of an image created with menu Image Create.
x, y New position of the top-left corner in the window.
width, height Optional new size.
menu Clear
menu Window Size 250 150
menu Image Create pic 10 10 64 64
menu Image Ellipse pic 8 8 56 56 yellow #true
menu Show
wait 40
menu Image Pos pic 100 10 128 128 ; moved and stretched to twice the size
halt
  • 1.5: moves an image, and turns on stretching even when only x and y are given.
  • 1.6: moves any control, not only images, and stretches an image only when width and height are given; a negative size is refused.

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.