Skip to content

Image


  • Use: To create an Image element from an external weblink

  • Definition: createImageFromLink(String link, long x, long y, long w, long h, String id)

  • Parameters:

    • String link : The external link of the Image to load from
    • long x : The position of the Image from its top-left corner along x-axis (horizontal) of the screen in px
    • long y : The position of the Image from its top-left corner along y-axis (vertical) of the screen in px
    • long w : The width of the Image in px
    • long h : The height of the Image in px
    • String id : The ID of the Image element
  • Returns: ID of the Image element as a String


createImageFromFile

  • Use: To create an Image element using an internal/local image file

  • Definition: createImageFromFile(String file_name, long x, long y, long w, long h, String id)

  • Parameters:

    • String file_name : The inetrnal/local file name of the Image with extension eg: myImage.jpg
    • long x : The position of the Image from its top-left corner along x-axis (horizontal) of the screen in px
    • long y : The position of the Image from its top-left corner along y-axis (vertical) of the screen in px
    • long w : The width of the Image in px
    • long h : The height of the Image in px
    • String id : The ID of the Image element
  • Returns: ID of the Image element as a String

Note

Before using this feature, make sure the images are copied in the images folder of EmbedUI

Info

You can click the Assets icon in the menu bar of the application to open the Assets folder. You can find the EmbedUI folder in My Documents > EmbedUi