src/gui/image/qimage.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   163     int height() const;
   163     int height() const;
   164     QSize size() const;
   164     QSize size() const;
   165     QRect rect() const;
   165     QRect rect() const;
   166 
   166 
   167     int depth() const;
   167     int depth() const;
   168     int numColors() const;
   168 #ifdef QT_DEPRECATED
       
   169     QT_DEPRECATED int numColors() const;
       
   170 #endif
       
   171     int colorCount() const;
   169 
   172 
   170     QRgb color(int i) const;
   173     QRgb color(int i) const;
   171     void setColor(int i, QRgb c);
   174     void setColor(int i, QRgb c);
   172     void setNumColors(int);
   175 #ifdef QT_DEPRECATED
       
   176     QT_DEPRECATED void setNumColors(int);
       
   177 #endif
       
   178     void setColorCount(int);
   173 
   179 
   174     bool allGray() const;
   180     bool allGray() const;
   175     bool isGrayscale() const;
   181     bool isGrayscale() const;
   176 
   182 
   177     uchar *bits();
   183     uchar *bits();
   178     const uchar *bits() const;
   184     const uchar *bits() const;
   179     int numBytes() const;
   185 #ifdef QT_DEPRECATED
       
   186     QT_DEPRECATED int numBytes() const;
       
   187 #endif
       
   188     int byteCount() const;
   180 
   189 
   181     uchar *scanLine(int);
   190     uchar *scanLine(int);
   182     const uchar *scanLine(int) const;
   191     const uchar *scanLine(int) const;
   183     int bytesPerLine() const;
   192     int bytesPerLine() const;
   184 
   193