Wx Image Add-on

Craig Hunter
hunter-associates@cox.net
August 18, 2005



Function: This add-on will load an image from the web.

The input setting format for this add-on is:

image:address:width:height

where image is the add-on name, address is the web address for the image (without the "http://" prefix), width is the desired display width for the image, and height is the desired height. To leave the image unscaled, both width and height can be set to zero (0).

For example, to load a satellite image from NOAA scaled to 320x240, specify:

image:www.goes.noaa.gov/GIFS/ECI8.JPG:320:240

To load the image without scaling::

image:www.goes.noaa.gov/GIFS/ECI8.JPG:0:0

Multiple instances of this add-on can be linked together as follows:

image:www.goes.noaa.gov/GIFS/ECI8.JPG:640:480+image:www.goes.noaa.gov/GIFS/WCIR.JPG:640:480

Note: since Wx interprets "+" and ":" characters as delimiters in add-on codes, special care must be taken when embedding these within image URLs -- for instance, if a port needed to be specified in a URL with a ":" or a URL string needs to have a "+" character. In these cases, you may represent these characters by their hex equivalents. The ":" character can be represented by "%3A" and the "+" character can be represented by "%2B" (no quotes in either case). The add-on will interpret these as ":" and "+", respectively, when forming the real URL for loading into the WebView.