|
Home » Development Area » DigiGuide Script » API Index » Class: System » getImage Method
Class System : getImage Method
| Image getImage( String imageName, [ Integer nAlphaPercentage ] ) |
Summary
Get an Image given a name
Remarks
An Image is always returned. If the Image can't be found then the usual "exclamation" image is returned instead.
Parameters
| Parameter | Description |
| String imageName |
The name of the image you wish to get. |
| Integer nAlphaPercentage [optional] |
When specified it will retrieve an image and add an alpha blend at the given percentage. A smaller number would produce a lighter image. Specifying 100 would be the same as not specifying the parameter at all. |
|
|
|
Examples
var image = system.getImage( "%DGIMAGEDIR%cert_12.gif" );
// Get hold of the same image but add an 50% alpha blend so its lighter in shade var imageDisabled = system.getImage( "%DGIMAGEDIR%cert_12.gif", 50 ); |
See Also
Image
System : doesImageExist
Requirements
build 1065
(Last updated: July 04, 2008 15:17:35)
|
|