• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 319, comments - 22, trackbacks - 0, articles - 11
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            PyQt 抓圖和截圖操作

            Posted on 2011-04-29 22:56 RTY 閱讀(1489) 評論(0)  編輯 收藏 引用 所屬分類: QtPython
            1. 示例代碼
            self.originalPixmap = QtGui.QPixmap.grabWindow(QtGui.QApplication.desktop().winId())

            2.關于QPixmap類的grabWIndow

            QPixmap QPixmap::grabWindow ( WId window, int x = 0, int y = 0, int width = -1, int height = -1 ) [static]

            Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

            The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

            The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

            The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

            Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

            On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

            Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

            无码乱码观看精品久久| 奇米综合四色77777久久| 久久精品亚洲男人的天堂| 色播久久人人爽人人爽人人片aV | 久久久久久国产精品无码超碰 | 91亚洲国产成人久久精品| 色99久久久久高潮综合影院| 亚洲AV成人无码久久精品老人| 久久国产精品久久| 久久国语露脸国产精品电影| 国产精品久久久久9999高清| 久久午夜免费视频| 青青青国产精品国产精品久久久久 | 久久国产精品无码HDAV| 久久久久亚洲精品无码网址| 久久久久99精品成人片欧美| 热久久国产欧美一区二区精品| 97精品久久天干天天天按摩 | 人妻久久久一区二区三区| 久久久久国产| 国产69精品久久久久9999| 亚洲国产精品无码久久久蜜芽 | 精品国产乱码久久久久久郑州公司 | 久久综合亚洲色HEZYO国产| 久久久久久久99精品免费观看| 成人午夜精品无码区久久| 一级做a爰片久久毛片免费陪 | 免费一级欧美大片久久网| 久久这里只有精品久久| 996久久国产精品线观看| 久久综合给合久久狠狠狠97色 | 亚洲国产精品一区二区三区久久| 久久夜色精品国产亚洲| 精品久久久久久国产91| 久久精品国产99国产电影网 | 久久精品国产只有精品2020| 国内精品久久久久久99蜜桃| 午夜精品久久久久久99热| 色综合久久综合中文综合网| 漂亮人妻被黑人久久精品| 久久天天躁狠狠躁夜夜网站|