|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: Font] [Home] [Next: Built-in Variables and Constants]
The Pixmap can be used to represent images in QSA. Instances of Pixmap can be passed to C++ slots that take arguments of type QPixmap.
The Pixmap constructor can take a filename referring to an image that will then be loaded:
var background = new Pixmap( "background.png" );
The width of the pixmap. This value is read only.
The height of the pixmap. This value is read only.
The enclosing rectangle (0, 0, width, height) of the pixmap. This value is read only.
The size of the rectangle. This value is read only.
The depth of the pixmap. The pixmap depth is also called bits per pixel (bpp) or bit planes of a pixmap. A null pixmap has depth 0. This value is read only.
isNull()
Returns true if this is a null pixmap; otherwise returns false. A null pixmap has zero width, zero depth, and no contents.
fill( color )
Fills the pixmap with the specified color.
resize( size : Size )
resize( width : Number, height : Number )
Resizes the pixmap to the specified dimensions.
load( filename )
Loads the specified filename into the pixmap.
save( filename )
Saves the pixmap to the specified filename.
[Prev: Font] [Home] [Next: Built-in Variables and Constants]
Copyright © 2001-2003 Trolltech | Trademarks | QSA version 1.0.1
|