Skip to content

menu Image File

menu Image File {name} {x} {y} {file}

Also searchable as: menu Image File · load picture · png · bmp

menu Image File loads a picture file and draws it into an image, with its top-left corner at x, y.

Parameter Meaning
name Name of an image created with menu Image Create.
x, y Where to draw it. Positions are inside the image, 0, 0 being its top-left corner.
file The picture. BMP, PNG, JPEG and GIF work; transparency in the file is kept.

When the file does not exist, nothing happens. A relative path starts from the folder EasyUO Reforged runs in, which is not always #CurPath: give a full path, or build one with #CurPath.

Older formats the original accepted, such as WMF, EMF and ICO, may not load.

menu Clear
menu Window Size 220 140
menu Image Create pic 10 10 200 120
; a corner of the wallpaper Windows 10 and 11 come with
menu Image File pic 0 0 C:\Windows\Web\Wallpaper\Windows\img0.jpg
menu Show
halt

See also

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