Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QMatrix & QMatrix::scale ( qreal  sx,
qreal  sy 
)

Scales the coordinate system by sx horizontally and sy vertically, and returns a reference to the matrix.

See also:
setMatrix()

Definition at line 857 of file qmatrix.cpp.

Referenced by ImageItem::adjust(), QGraphicsItemAnimation::matrixAt(), and CombinedTransformation::paintEvent().

{
    _m11 *= sx;
    _m12 *= sx;
    _m21 *= sy;
    _m22 *= sy;
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index