Class Image |
# This class loads an image from file and displays it. The image should be in GIF format. A border may be included with {toggle_draw_border()}. The size of the area into which the image is drawn must be set with {set_size()}.
Details |
Constructor |
Methods: |
Set the name of the file from which to load the image; re-display the image from the new file if appropriate.
# Set the horizontal and vertical alignment of the image within the area of the component; {x} should be ``l'', ``c'' or ``r'', {y} should be ``t'', ``c'' or ``b''. Default is ``c'', ``c''.
If set, then the image will be scaled up to fit in the space specified by {set_size()}. The image will not be distorted, but will be expanded to fill one of the dimensions depending on its shape. If the image is bigger than the specified size then it will always be scaled down.
Fields: |