Skip to content

menu Image Create

menu Image Create {name} {x} {y} {width} {height}

Also searchable as: menu Image Create · picture · canvas

menu Image Create places an image in the menu window: a rectangle you can draw in or load a picture into with the other menu Image commands. It starts completely transparent.

Parameter Meaning
name The control’s name, used later by menu Get, menu Set and menu Delete. Case does not matter.
x, y Position of the top-left corner in the window.
width, height Size in pixels.

$FEEEED is the transparent colour of images: painting with it makes those pixels see-through.

menu Clear
menu Window Size 84 84
menu Image Create pic 10 10 64 64
menu Image Rectangle pic 0 0 64 64 navy 1
menu Image Ellipse pic 8 8 56 56 yellow 1
menu Show
halt
  • 1.6: a negative width or height is refused. The image goes into the current default parent.

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.