|
Whitebeam Template Reference Documentation
|
rb.GraphicImage Object Description (GraphicImage Template)
The GraphicImage
class encapsulates the necessary functionality to build
images (GIFs, JPEG and PNG format) 'on the fly'. This functionality is
useful in many situations, from the simple example of resizing a big user image
to create a thumbnail, to dynamically generating charts. This class is optionally part of Whitebeam if compiled with the
--enable-gd flag (to configure). Switching this flag on links
the Whitebeam presentation engine with the 'libgd' image library
and to it's dependent libraries. Methods
Aggregate Types
Object Properties
Name | Type/Value | Range/Length | Description | width | number | | Optional, default = null
The width of this image. This property will be 'null' if the object contains no image.
| height | number | | Optional, default = null
The height of this image. This property will be 'null' if the object contains no image.
| colours | number | | Optional, default = null
For palette based images the number of colours used in the palette. 'null' if this
object does not contain an image, or the image is true-colour
| palette | number | | Optional, default = null
'null' if this object does not contain an image, otherwise returns 'true' if the image is palette based or 'false' if true-colour
|
|
|
(loadtime : 22ms) |