Method Cairo.Context()->set_source()
- Method
set_source
void
set_source(Pattern
source
)- Description
Sets the source pattern to
source
. This pattern will then be used for any subsequent drawing operation until a new source pattern is set.- Note
The pattern's transformation matrix will be locked to the user space in effect at the time of set_source(). This means that further modifications of the current transformation matrix will not affect the source pattern. See Pattern->set_matrix().
The default source pattern is a solid pattern that is opaque black, (that is, it is equivalent to set_source_rgb(0.0, 0.0, 0.0)).
- Parameter
source
a Pattern to be used as the source for subsequent drawing operations.