! Returns the alpha map value of the cell with the indices \a keyIndex and \a valueIndex. If this color map data doesn't have an alpha map (because \ref setAlpha was never called after creation or after a call to \ref clearAlpha), returns 255, which corresponds to full opacity. \see setAlpha */
| 25144 | \see setAlpha |
| 25145 | */ |
| 25146 | unsigned char QCPColorMapData::alpha(int keyIndex, int valueIndex) |
| 25147 | { |
| 25148 | if (mAlpha && keyIndex >= 0 && keyIndex < mKeySize && valueIndex >= 0 && valueIndex < mValueSize) |
| 25149 | return mAlpha[valueIndex*mKeySize + keyIndex]; |
| 25150 | else |
| 25151 | return 255; |
| 25152 | } |
| 25153 | |
| 25154 | /*! |
| 25155 | Resizes the data array to have \a keySize cells in the key dimension and \a valueSize cells in |
no outgoing calls
no test coverage detected