src/gui/image/qimage.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   167     int depth() const;
   167     int depth() const;
   168 #ifdef QT_DEPRECATED
   168 #ifdef QT_DEPRECATED
   169     QT_DEPRECATED int numColors() const;
   169     QT_DEPRECATED int numColors() const;
   170 #endif
   170 #endif
   171     int colorCount() const;
   171     int colorCount() const;
       
   172     int bitPlaneCount() const;
   172 
   173 
   173     QRgb color(int i) const;
   174     QRgb color(int i) const;
   174     void setColor(int i, QRgb c);
   175     void setColor(int i, QRgb c);
   175 #ifdef QT_DEPRECATED
   176 #ifdef QT_DEPRECATED
   176     QT_DEPRECATED void setNumColors(int);
   177     QT_DEPRECATED void setNumColors(int);
   180     bool allGray() const;
   181     bool allGray() const;
   181     bool isGrayscale() const;
   182     bool isGrayscale() const;
   182 
   183 
   183     uchar *bits();
   184     uchar *bits();
   184     const uchar *bits() const;
   185     const uchar *bits() const;
       
   186     const uchar *constBits() const;
   185 #ifdef QT_DEPRECATED
   187 #ifdef QT_DEPRECATED
   186     QT_DEPRECATED int numBytes() const;
   188     QT_DEPRECATED int numBytes() const;
   187 #endif
   189 #endif
   188     int byteCount() const;
   190     int byteCount() const;
   189 
   191 
   190     uchar *scanLine(int);
   192     uchar *scanLine(int);
   191     const uchar *scanLine(int) const;
   193     const uchar *scanLine(int) const;
       
   194     const uchar *constScanLine(int) const;
   192     int bytesPerLine() const;
   195     int bytesPerLine() const;
   193 
   196 
   194     bool valid(int x, int y) const;
   197     bool valid(int x, int y) const;
   195     bool valid(const QPoint &pt) const;
   198     bool valid(const QPoint &pt) const;
   196 
   199