sourcforge > sotacs
 

TransparentPNG

When a .png image is included in a HTML with an <img>-tag, MSIE up to version 6.0 does not support the alpha transparency.
This component uses a workaround, that makes all browsers including MSIE show correctly the transparency.
The sreenshot on the right, that is taken from the dynamic version of this user guide, demonstrates alpha transparency. The image originally consists of the bricks background and two png images with alpha transparency in front of it.
Shadowed Wall

Property Reference

Name Type Required Default Value Description
asset IAsset No   The asset of which the content is to be included.
One of 'asset' or 'url' must be set.
url String No   Alternatively to asset, the image's url can be specified directly.
One of 'asset' or 'url' must be set.
width int Yes   The width/height of the image.
height int Yes  
disabled boolean No false If this is set to true, no image is rendered

Body : forbidden

Informal parameters : ignored>

Example

<img jwcid="@sotacs:TransparentPNG" url="images/myImage.png"
	           width="200" height="100"/>            

renders the png image.