Difference between revisions of "Menu Image File"

From Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{command header|Menu}}
== menu Image File ==
+
'''Menu'''
+
=== Synopsis ===
+
[[menu Image File]] {name} {x} {y} {filename}
+
  
=== Description ===
+
{{body|menu Image File {name} {x} {y} {filename} |The '''menu Image File''' command loads an external image file at position x/y within the specified image.
The [[menu Image File]] command loads an external image file at position x/y within the specified image.
+
  
''NOTE: This command is only available from EUO 1.5.''
+
name is a valid EUO name. it should match the name used with the [[menu Image Create]] command.
  
''The number of supported formats may depend on your OS, but BMP, GIF and JPG should always be suppored. File types that support transparency should also appear transparent in the image.''
+
The X and Y values provided to this command are relative to within the Image created with the [[menu Image Create]] command, not the window itself. Therefore, menu Image File Test 0 0 test.bmp will place the image at the top right of the image container, not the top right of the window.
  
==== See Also ====
+
filename must be a valid path to an existing file.}}
{|
+
 
| [[menu_Activate|menu Activate]], [[menu_Button|menu Button]], [[menu_Check|menu Check]], [[menu_Clear|menu Clear]], [[menu_Combo|menu Combo]], [[menu_Delete|menu Delete]], [[menu_Edit|menu Edit]], [[menu_Font_Align|menu Font Align]], [[menu_Font_BGColor|menu Font BGColor]], [[menu_Font_Color|menu Font Color]], [[menu_Font_Name|menu Font Name]], [[menu_Font_Size|menu Font Size]], [[menu_Font_Style|menu Font Style]], [[menu_Font_Transparent|menu Font Transparent]], [[menu_Get|menu Get]], [[menu_GetNum|menu GetNum]], [[menu_Hide|menu Hide]], [[menu_HideEUO|menu HideEUO]], [[menu_List|menu List]], [[menu_Set|menu Set]], [[menu_Shape|menu Shape]], [[menu_Show|menu Show]], [[menu_Text|menu Text]], [[menu_Window_Color|menu Window Color]], [[menu_Window_Size|menu Window Size]], [[menu_Window_Title|menu Window Title]]
+
 
|}
+
{{Note|
----
+
*This command is only available from EUO 1.5.
{|
+
*The number of supported formats may depend on your OS, but BMP, GIF and JPG should always be suppored. File types that support transparency should also appear transparent in the image.}}
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
 
[[Documentation#Menu |Menu ]]
+
 
|}
+
=See Also=
 +
{{Menu}}

Latest revision as of 13:29, 13 September 2007


Synopsis

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

Description

The menu Image File command loads an external image file at position x/y within the specified image.

name is a valid EUO name. it should match the name used with the menu Image Create command.

The X and Y values provided to this command are relative to within the Image created with the menu Image Create command, not the window itself. Therefore, menu Image File Test 0 0 test.bmp will place the image at the top right of the image container, not the top right of the window.

filename must be a valid path to an existing file.


Note:
  • This command is only available from EUO 1.5.
  • The number of supported formats may depend on your OS, but BMP, GIF and JPG should always be suppored. File types that support transparency should also appear transparent in the image.


See Also

Menu

  • Commands to interact with menu elements.
menu Activate Activates a window element in the EasyUO menu window
menu Button Creates a button at position x/y with specified size on the EasyUO menu window
menu Check Creates a checkbox at position x/y with specified size on the EasyUO menu window
menu Clear Clears all window elements from the EasyUO menu window
menu Combo Creates a combobox at position x/y with specified size on the EasyUO menu window or adds entries to the combobox
menu Delete Deletes a window element from the EasyUO menu window
menu Edit Creates a edit field at position x/y with specified width in the EasyUO menu window
menu Font Align Changes the font alignment in the EasyUO menu window
menu Font BGColor Changes the font background color in the EasyUO menu window
menu Font Color Changes the font color in the EasyUO menu window
menu Font Name Changes the font in the EasyUO menu window
menu Font Size Changes the font size in the EasyUO menu window
menu Font Style Changes the font style in the EasyUO menu window
menu Font Transparent Sets the transparency of the background color of the font
menu Get Returns the value associated with a control in the EasyUO menu window
menu GetNum Returns the number in an edit field in the EasyUO menu window
menu Hide Hides the EasyUO menu window
menu HideEUO Hides the main EasyUO window
menu Image Create Creates a new image control in the menu
menu Image Ellipse Draws an ellipse/circle within a specified image
menu Image File Loads an external image file
menu Image FloodFill Applies the FloodFill effect in the area around a specified pixel within a specified image
menu Image Line Draws a line within a specified image
menu Image Pix Paints a single pixel within a specified image
menu Image PixLine Prints a horizontal line of pixels within a specified image
menu Image Pos Moves an already existing image control to a different position
menu Image Rectangle Draws a rectangle within a specified image
menu List Creates a listbox at position x/y with specified size on the EasyUO menu window or adds entires to the listbox
menu Set Sets the text of a control
menu Shape Creates a shape in the EasyUO menu window
menu Show Shows the EasyUO menu window
menu Text Creates a label at the specified position in the EasyUO menu window
menu Window Color Changes the color of the EasyUO menu window
menu Window Size Changes the size of the EasyUO menu window
menu Window Title Changes the title of the EasyUO menu window
menu Window Transparent Sets the transparency of the window