Image (PQL)

Returns markup text to insert an image from the specified URL

  • Returned Output: Text
  • Library: PQL \ Dynamic \ Markup
  • Version: 2020.10.000
  • Compatibility: Any content (regardless of data source) in the relevant parts of the application

Syntax

Image( <URL> , OPTIONAL <Width> , OPTIONAL <Height> )

* Click on the function's arguments above for more details on the input values.

Comments
  • Use this function to embed web-based images into your dynamically created text programmatically.
  • The image URL address must be accessible from a web browser on your network.
  • If width or height are not supplied, the image is shown using its natural dimensions,
  • The text can be any static or formula driven text element.

Examples

This example returns the following Pyramid logo image from the Pyramid website and sets its width to 150 pixels.

Image ("https://www.pyramidanalytics.com/wp-content/themes/pyramid/static/images/logo_white.png", 150)