<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] ## QPixmap 專門為圖像在屏幕上的顯示做了優化; QPixmap使用底層平臺的繪制系統進行繪制,無法提供像素級別的操作,QImage 提供了像素級別的繪制 ## QBitmap 1. 是QPixmap的一個子類 2. 主要用于顯示**單色位圖** 3. 它的色深限定為1,你可以使用 QPixmap的isQBitmap()函數來確定這個QPixmap是不是一個QBitmap ## 實例 ## simlpe ``` void Label::paintEvent(QPaintEvent *event) { QBitmap img(":/1.jpeg"); // QPixmap img(":/1.jpeg"); QPainter painter(this); painter.drawPixmap(10,10,128,128,img); } ``` ### 比較pixmap 與bitmap 的差異 ``` void PaintedWidget::paintEvent(QPaintEvent *event) { QPainter painter(this); // Cat.png 背景為純白 QPixmap pixmap("Cat.png"); QBitmap bitmap("Cat.png"); painter.drawPixmap(10, 10, 128, 128, pixmap); painter.drawPixmap(140, 10, 128, 128, bitmap); /// Cat2.png 背景為透明 QPixmap pixmap2("Cat2.png"); QBitmap bitmap2("Cat2.png"); painter.drawPixmap(10, 140, 128, 128, pixmap2); painter.drawPixmap(140, 140, 128, 128, bitmap2); } ``` ![](http://img-blog.csdn.net/20140922192902053?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvenp3ZGt4eA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast) **區別** 1. 白色的背景在Qbitmap中消失了 2. 透明色在QBitmap中轉換成了黑色;其他顏色則是使用點的疏密程度來體現的
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看