This class represents a picture.
The picture contents are stored in the display server, not in the process memory like an Image.
Even if X-Window does not manage transparency yet, each picture can have
a mask. This feature can be set explicitely at picture instanciation,
or implicitely when loading an image file that has transparency like PNG
.
When drawing on a picture having a mask, the picture and the mask are modified accordingly.
This class is creatable.
DIM hPicture AS Picture hPicture = NEW Picture ( [ Width AS Integer, Height AS Integer, Transparent AS Boolean ] ) |
If the Width and Height are not specified, the new picture is void.
You can specify if the picture has a mask with the Transparent parameter.
This class acts like an array.
DIM hPicture AS Picture hPicture = Picture [ Path AS String ] |
If the picture is not present in the cache, it is automatically loaded from the specified file.
DIM hPicture AS Picture Picture [ Path AS String ] = hPicture |