• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            PyQt 抓圖和截圖操作

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

            2.關(guān)于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.

            亚洲国产视频久久| 久久青草国产手机看片福利盒子| 91麻精品国产91久久久久| 久久国产美女免费观看精品 | 蜜臀久久99精品久久久久久| 久久国产精品99久久久久久老狼| 2021最新久久久视精品爱| 久久福利资源国产精品999| 日韩精品久久久久久久电影| 看全色黄大色大片免费久久久| 久久综合伊人77777麻豆| 久久99这里只有精品国产| 久久国产精品二国产精品| 久久久噜噜噜www成人网| 久久人人爽人人爽人人片av麻烦| 99久久www免费人成精品| 18岁日韩内射颜射午夜久久成人| 久久精品国产亚洲7777| 伊人久久综合无码成人网| 国产L精品国产亚洲区久久| 国产精品美女久久久久 | 国产成人久久精品一区二区三区 | 久久国产高清一区二区三区| 蜜臀久久99精品久久久久久小说| 囯产精品久久久久久久久蜜桃| 久久久久久综合一区中文字幕 | 狠狠色噜噜色狠狠狠综合久久| 成人资源影音先锋久久资源网| 99久久久精品免费观看国产| 99久久免费国产精品特黄| 精品久久综合1区2区3区激情| 99国产精品久久| 久久久免费精品re6| 久久婷婷激情综合色综合俺也去| 狠狠色噜噜色狠狠狠综合久久 | 久久免费香蕉视频| 青草影院天堂男人久久| 91久久精一区二区三区大全| 色诱久久久久综合网ywww | 久久精品国产91久久综合麻豆自制| 欧美亚洲另类久久综合婷婷|