• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QStylePainter

    下一话题

    QRegion

    QPainter.PixmapFragment

    注意

    This class was introduced in Qt 4.7

    概要

    静态函数

    • def create (pos, sourceRect[, scaleX=1[, scaleY=1[, rotation=0[, opacity=1]]]])

    详细描述

    此类用于结合 QPainter.drawPixmapFragments() function to specify how a pixmap, or sub-rect of a pixmap, is drawn.

    sourceLeft , sourceTop , width and height variables are used as a source rectangle within the pixmap passed into the QPainter.drawPixmapFragments() function. The variables x , y , width and height are used to calculate the target rectangle that is drawn. x and y denotes the center of the target rectangle. The width and height in the target rectangle is scaled by the scaleX and scaleY values. The resulting target rectangle is then rotated rotation degrees around the x , y center point.

    class PySide.QtGui.QPainter. PixmapFragment
    class PySide.QtGui.QPainter. PixmapFragment ( PixmapFragment )
    参数: PixmapFragment PySide.QtGui.QPainter::PixmapFragment
    PySide.QtGui.QPainter.PixmapFragment. width
    PySide.QtGui.QPainter.PixmapFragment. scaleY
    PySide.QtGui.QPainter.PixmapFragment. x
    PySide.QtGui.QPainter.PixmapFragment. opacity
    PySide.QtGui.QPainter.PixmapFragment. y
    PySide.QtGui.QPainter.PixmapFragment. rotation
    PySide.QtGui.QPainter.PixmapFragment. sourceLeft
    PySide.QtGui.QPainter.PixmapFragment. height
    PySide.QtGui.QPainter.PixmapFragment. sourceTop
    PySide.QtGui.QPainter.PixmapFragment. scaleX
    static PySide.QtGui.QPainter.PixmapFragment. create ( pos , sourceRect [ , scaleX=1 [ , scaleY=1 [ , rotation=0 [ , opacity=1 ] ] ] ] )
    参数:
    返回类型:

    PySide.QtGui.QPainter::PixmapFragment

    This is a convenience function that returns a QPainter.PixmapFragment that is initialized with the pos , sourceRect , scaleX , scaleY , rotation , opacity 参数。