• <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 閱讀(1496) 評論(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.

            久久精品aⅴ无码中文字字幕不卡 久久精品成人欧美大片 | 久久www免费人成看国产片| 国产成人无码精品久久久免费| 99久久精品免费观看国产| 日本国产精品久久| 久久se精品一区二区| 久久亚洲精品国产亚洲老地址 | 久久午夜福利无码1000合集| 亚洲国产精品18久久久久久| 久久99精品久久久久久hb无码| 99久久国产综合精品成人影院| 热久久最新网站获取| 久久亚洲国产精品一区二区| 久久无码专区国产精品发布| 精品国产青草久久久久福利 | 精品熟女少妇a∨免费久久| 久久久久久久综合日本| 国产午夜福利精品久久2021| 国产精品99久久久久久宅男小说| 欧美久久综合性欧美| 久久亚洲中文字幕精品有坂深雪 | 欧美一区二区久久精品| 久久人人爽人人爽人人片AV东京热| 久久久久久亚洲AV无码专区| 久久久久久久免费视频| 色天使久久综合网天天| 久久国产成人午夜AV影院| 四虎国产精品免费久久久| 国产精品久久久久AV福利动漫 | 香蕉99久久国产综合精品宅男自 | 久久久精品国产免大香伊 | 国产午夜精品久久久久免费视 | 国产精品欧美久久久久无广告 | 亚洲精品美女久久久久99小说| 国产一区二区精品久久凹凸| 99久久人人爽亚洲精品美女| 久久青青草原国产精品免费| 狠狠精品干练久久久无码中文字幕| 久久最新精品国产| 久久久久99精品成人片三人毛片| 久久亚洲欧洲国产综合|