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

            PyQt 抓圖和截圖操作

            Posted on 2011-04-29 22:56 RTY 閱讀(1496) 評(píng)論(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.

            久久电影网| 99久久成人国产精品免费| 狠狠色丁香婷婷久久综合不卡| 久久99精品国产| 久久人人爽人人爽人人片AV不 | 久久天天躁夜夜躁狠狠| 久久免费看黄a级毛片| 久久w5ww成w人免费| 中文字幕乱码久久午夜| 99久久亚洲综合精品成人| 亚洲精品无码久久久久| 欧美日韩成人精品久久久免费看| 99久久99这里只有免费费精品| 色婷婷久久久SWAG精品| 久久人人爽人人澡人人高潮AV| 日本免费一区二区久久人人澡| 免费无码国产欧美久久18| 日批日出水久久亚洲精品tv| 久久久久国产精品嫩草影院| 国产精品亚洲美女久久久| 久久精品国产亚洲麻豆| 99久久久精品| 久久综合九色欧美综合狠狠| 少妇无套内谢久久久久| 94久久国产乱子伦精品免费| 日韩一区二区久久久久久 | 精品久久久久中文字幕一区| 93精91精品国产综合久久香蕉| 亚洲人成网站999久久久综合| 亚洲精品午夜国产VA久久成人| 人妻中文久久久久| 久久精品国产只有精品2020| 久久精品国产亚洲Aⅴ蜜臀色欲| 无码人妻久久一区二区三区蜜桃| 精品久久久久久中文字幕人妻最新| 老司机国内精品久久久久| 日韩中文久久| 久久久久久国产精品无码超碰| yy6080久久| 久久精品国产99国产精品亚洲| 久久青青国产|