wml::des::imgdot(3) | EN Tools | wml::des::imgdot(3) |
wml::des::imgdot - 1pt Dot-Images for Webdesign
#use wml::des::imgdot <: $file = &imgdot($base, $x, $y, $c, $r, $g, $b, $transp, $format); :> <imgdot [attributes]>
Currently (as of HTML 3.2 and 1997 ;_) webdesigners use two commonly known tricks for creating their layout on webpages: HTML tables and so-called 1pt Dot-Images. The first one is nicely supported by the WML tag "<grid>" (see wml::des::grid(3) for details), the latter is supported by this "<imgdot>" tag.
The usual purpose of this tag is to create a transparent PNG or GIF image with a physical size of 1x1 points and a corresponding "<img>" tag which includes this image with appropriate "width" and "height" attributes. The visual result is a invisible reserved space of size "width"X"height". Alternatively this tag can create the image with the requested size instead of scaling the 1pt image (see the "noscale" attribute below). This approach is more safe (all browsers support this) but wastes bandwidth and increases page load time.
And for most flexibility when no base is specified and the variable "IMGDOT_BASE" is defined (usually from within a .wmlrc file via "-DIMGDOT_BASE~path/to/imgdot/dir/base") it is used. Use this feature to redirect the created images to a particular directory.
You may also use the variable "IMAGE_BASE" which defines in a single line all base names for images generated by WML.
Ralf S. Engelschall rse@engelschall.com www.engelschall.com Denis Barbier barbier@engelschall.com
Internal: P1, P2, P3
HTML <"img"> tag.
2020-11-29 | EN Tools |