This class is used for showing images.
Supported image types are GIF, JPEG and PNG (including support for 32-bit RGBA).
This class extends
BiComponent and therefore all methods and fields available for
BiComponent are also available for
new BiImage ( [ oUri [ ,nWidth [ ,nHeight ] ] ] )
|The location of the file relative to the |
|The width of the image in pixels. A value of null gives the component its desired width. |
|The height of the image in pixels. A value of null gives the component its desired height. |
|The alternate text which is read out instead of the image when |
Bindows is in accessibility mode.
|Whether the image file is loaded |
|The location of the image file. If this is set to a string a new URI is created from that string relative to the |
|This method is used to generate the HTML code used as the icon for |
|Fires when the image failed to load. |
|Fires when the image loads. Note that the image file may be loaded before the constructor finishes and you should not only rely on this event but also use |
|The location of a blank image |
When using PNG images it is recommended not to change the opacity because Internet Explorer cannot support the combination of these.
This method is used to generate the HTML code used as the icon for
object.getIconHtml ( bHasText,bEnabled,sIconPosition,nIconTextGap [ ,sClassName ] )
|Whether the icon should be used with text |
|Whether the icon is enabled |
|The position of the icon. Valid values are "left", "right" "top" and "bottom". |
|The gap between the text and the icon. |
|Optional class name to put on the HTML element representing the icon. |
Static Method Details
Returns a new
BiImage from the given URI
BiImage . fromUri ( oUri )
|The location of the image file |