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

            国产精品18久久久久久vr| 国产精品久久久久jk制服| 久久九九久精品国产免费直播| 欧美日韩中文字幕久久伊人| 久久电影网| 久久99国产综合精品免费| 久久精品亚洲欧美日韩久久| 伊人色综合久久天天人手人婷| 久久精品国产亚洲网站| 国产精品99久久久久久宅男小说| 久久w5ww成w人免费| 无码任你躁久久久久久老妇| 国产精品美女久久久m| 亚洲天堂久久久| 国产精品99久久久久久董美香| 人妻无码αv中文字幕久久琪琪布 人妻无码精品久久亚瑟影视 | 亚洲精品美女久久久久99小说| 一本久久a久久精品亚洲| 国产真实乱对白精彩久久| 久久精品黄AA片一区二区三区| 中文字幕无码av激情不卡久久| segui久久国产精品| 久久精品国产精品青草app| 婷婷综合久久中文字幕蜜桃三电影| 色天使久久综合网天天| 日本免费一区二区久久人人澡| 精品久久久无码人妻中文字幕豆芽| 久久91精品国产91| 一本色道久久88综合日韩精品| 久久精品亚洲男人的天堂| 国产福利电影一区二区三区,免费久久久久久久精| 18禁黄久久久AAA片| 欧美成人免费观看久久| 亚洲午夜久久久| 久久久久亚洲AV无码专区首JN| 久久久久久亚洲精品无码| 精品久久久久久久久久久久久久久| 国产精品久久国产精品99盘 | 久久99国产精品久久| 久久精品人人做人人爽97| av无码久久久久久不卡网站|