HTML_IMAGE Function
Allows for the creation of an HTML image reference.
Usage
html_img = HTML_IMAGE(url)
Input Parameters
url—A string or array of strings containing URL(s) for images.
Keywords
Alt—A string which is an alternate attribute used to replace the image in browsers unable to display graphics.
Bottom—Aligns the image at the bottom of its containing element.
Left—Aligns the image at the left of the browser window.
Middle—Aligns the image vertically in the middle of its containing element.
Right—Aligns the image at the right of the browser window.
Top—Aligns the image at the top of its containing element.
Returned Value
html_img—A string or an array of strings containing the HTML image code.
Discussion
Coupled with PV‑WAVE imaging, rendering, and visualization capabilities, the HTML_IMAGE function allows you the flexibility of visualizing your data in an HTML document over the Internet.
For an example of how to create a GIF file from PV‑WAVE for inclusion in an HTML document, see the following demonstration:
(UNIX) <wavedir>/demo/web/html/html_demo.pro
(WIN) <wavedir>\demo\web\html\html_demo.pro
where <wavedir>
is the main PV‑WAVE directory.
Note:
Although HTML_IMAGE has many keywords enabling you to position the image within the containing element or browser window, you can also use the HTML_HIGHLIGHT function to specify any HTML image alignment attribute that is not included as a keyword for HTML_IMAGE. For example, the following line of code can be used to center an image:
|
Example
This example centers the PV‑WAVE logo in a browser window.
HTML_OPEN HTML_BLOCK, HTML_HIGHLIGHT(HTML_IMAGE( $ !Data_dir + '/rw_logo.jpg'), 'CENTER') HTML_CLOSE
See Also
HTML_BLOCK, HTML_HIGHLIGHT, HTML_LINK, HTML_OPEN, IMAGE_CREATE, IMAGE_READ, IMAGE_WRITE, READ_XBM, WRITE_XBM