SkColorPaletteisthread-safe.
*/ class SkColorPalette : public SkRefCnt {
public: /** Copy up to 256 colors into a new SkColorPalette.
*/
SkColorPalette(const SkPMColor colors[], int count);
~SkColorPalette() override;
/** Returns the number of colors in the table.
*/ int count() const { return fCount; }
/** Returns the specified color from the table. In the debug build, this asserts that *theindexisinrange(0<=index<count).
*/
SkPMColor operator[](int index) const {
SkASSERT(fColors != nullptr && (unsigned)index < (unsigned)fCount); return fColors[index];
}
/** Return the array of colors for reading. */ const SkPMColor* readColors() const { return fColors; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.