SkColorMatrixFilter Class Reference

#include <SkColorMatrixFilter.h>

Inherits SkColorFilter.

Collaboration diagram for SkColorMatrixFilter:
Collaboration graph
[legend]

List of all members.

Classes

struct  State

Public Member Functions

 SkColorMatrixFilter ()
 SkColorMatrixFilter (const SkColorMatrix &)
 SkColorMatrixFilter (const SkScalar array[20])
void setMatrix (const SkColorMatrix &)
void setArray (const SkScalar array[20])
virtual void filterSpan (const SkPMColor src[], int count, SkPMColor[])
virtual void filterSpan16 (const uint16_t src[], int count, uint16_t[])
virtual uint32_t getFlags ()
virtual void flatten (SkFlattenableWriteBuffer &buffer)

Protected Member Functions

virtual Factory getFactory ()
 SkColorMatrixFilter (SkFlattenableReadBuffer &buffer)

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]  ) 
SkColorMatrixFilter::SkColorMatrixFilter ( SkFlattenableReadBuffer buffer  )  [protected]

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.

virtual void SkColorMatrixFilter::flatten ( SkFlattenableWriteBuffer  )  [virtual]

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]  ) 
void SkColorMatrixFilter::setMatrix ( const SkColorMatrix  ) 

The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1