SkColorMatrixFilter Class Reference
#include <SkColorMatrixFilter.h>
Inherits SkColorFilter.
List of all members.
Detailed Description
Definition at line 23 of file SkColorMatrixFilter.h.
Constructor & Destructor Documentation
SkColorMatrixFilter::SkColorMatrixFilter |
( |
|
) |
|
SkColorMatrixFilter::SkColorMatrixFilter |
( |
const SkColorMatrix & |
|
) |
[explicit] |
SkColorMatrixFilter::SkColorMatrixFilter |
( |
const SkScalar |
array[20] |
) |
|
Member Function Documentation
virtual void SkColorMatrixFilter::filterSpan |
( |
const SkPMColor |
src[], |
|
|
int |
count, |
|
|
SkPMColor |
result[] | |
|
) |
| | [virtual] |
Called with a scanline of colors, as if there was a shader installed. The implementation writes out its filtered version into result[]. Note: shader and result may be the same buffer.
- Parameters:
-
| src | array of colors, possibly generated by a shader |
| count | the number of entries in the src[] and result[] arrays |
| result | written by the filter |
Implements SkColorFilter.
virtual void SkColorMatrixFilter::filterSpan16 |
( |
const uint16_t |
shader[], |
|
|
int |
count, |
|
|
uint16_t |
result[] | |
|
) |
| | [virtual] |
Called with a scanline of colors, as if there was a shader installed. The implementation writes out its filtered version into result[]. Note: shader and result may be the same buffer.
- Parameters:
-
| src | array of colors, possibly generated by a shader |
| count | the number of entries in the src[] and result[] arrays |
| result | written by the filter |
Reimplemented from SkColorFilter.
Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by getFactory().
Reimplemented from SkFlattenable.
virtual Factory SkColorMatrixFilter::getFactory |
( |
|
) |
[protected, virtual] |
Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().
Implements SkFlattenable.
virtual uint32_t SkColorMatrixFilter::getFlags |
( |
|
) |
[virtual] |
Returns the flags for this filter. Override in subclasses to return custom flags.
Reimplemented from SkColorFilter.
void SkColorMatrixFilter::setArray |
( |
const SkScalar |
array[20] |
) |
|
The documentation for this class was generated from the following file: