• <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.

            国产欧美久久一区二区| 色欲综合久久躁天天躁| 久久人爽人人爽人人片AV| 久久精品亚洲一区二区三区浴池| 久久99精品久久只有精品| 99久久精品毛片免费播放| 99久久精品国产毛片| 伊人热热久久原色播放www| 久久99精品久久久久久hb无码| 国产A级毛片久久久精品毛片| 奇米影视7777久久精品人人爽| 九九久久99综合一区二区| 亚洲伊人久久成综合人影院 | 久久精品国产亚洲Aⅴ香蕉| 久久久午夜精品福利内容| 久久国产精品久久国产精品| 久久久亚洲AV波多野结衣| 久久996热精品xxxx| 久久本道伊人久久| 日本人妻丰满熟妇久久久久久| 久久久精品久久久久久| 99热成人精品热久久669| 色老头网站久久网| 久久久久人妻精品一区三寸蜜桃| 久久久久久夜精品精品免费啦| 亚洲日韩欧美一区久久久久我| 狠狠干狠狠久久| 97久久精品无码一区二区天美| 久久伊人五月丁香狠狠色| 亚洲国产成人精品91久久久 | 国产精品一区二区久久精品无码 | 热re99久久精品国产99热| 人妻精品久久久久中文字幕69| 久久成人小视频| 久久久国产精华液| 99久久99久久精品国产片果冻 | 日日躁夜夜躁狠狠久久AV| 伊人久久大香线蕉综合Av| 久久夜色精品国产亚洲| 狠狠色丁香婷婷久久综合| 久久人人爽人人爽人人片av麻烦 |