Function Context.setSource
Sets the source
pattern within cr to source
. This pattern will
then be used for any subsequent drawing operation until
a new source
pattern is set.
Prototype
void setSource(
Pattern pat
);
Note
The pattern's transformation matrix
will be locked to
the user space in effect at the time of setSource
(). This
means that further modifications of the current transformation
matrix
will not affect the source
pattern.
See Pattern.setMatrix
().
The default source
pattern is a solid pattern that is opaque
black, (that is, it is equivalent
to setSourceRGB
(0.0, 0.0, 0.0)).
Authors
Johannes Pfau | cairoD |
Andrej Mitrovic | cairoD |
cairo team | cairo |
Copyright
License
cairoD wrapper/bindings | Boost License 1.0 |
cairo | LGPL 2.1 / MPL 1.1 |