comp • gb.qt4 • picture

Picture (gb.qt4)

This class represents a picture.

The picture contents are stored in the display server, not in the process memory like an Image.

Even if the underlying toolkit does not completely 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
Creates a new picture.
creatable
.
This class acts like a
Returns a Picture object from the internal picture cache.
read
/
Inserts a picture in the internal picture cache.
write
static array.

Static methods

Flushes the internal picture cache.
Flush  
Loads a picture from the disk.
Load  

Properties

Methods
Returns the color depth of the picture.
Depth  
A synonymous for the Height property.
H  
Returns the height of the picture.
Height  
Converts the picture into an image and returns it.
Image  
Returns or sets if the picture has a mask.
Transparent  
A synonymous for the Width property.
W  
Returns the width of the picture.
Width  
Clears the picture.
Clear  
Returns a copy of the picture, or a copy of a part of the picture.
Copy  
Fills the picture with the specified color.
Fill  
Resizes a picture.
Resize  
Saves a picture to the disk. The file extension of Path will give the format of the saved image.
Save