Description Usage Arguments Details Author(s)
This is a convenience function for creating a pattern from surface
and setting it as the source in cr
with cairoSetSource
.
1 | cairoSetSourceSurface(cr, surface, x, y)
|
|
[ |
|
[ |
|
[numeric] User-space X coordinate for surface origin |
|
[numeric] User-space Y coordinate for surface origin |
The x
and y
parameters give the user-space coordinate at which
the surface origin should appear. (The surface origin is its
upper-left corner before any transformation has been applied.) The
x
and y
patterns are negated and then set as translation values
in the pattern matrix.
Other than the initial translation pattern matrix, as described
above, all other pattern attributes, (such as its extend mode), are
set to the default values as in cairoPatternCreateForSurface
.
The resulting pattern can be queried with cairoGetSource
so
that these attributes can be modified if desired, (eg. to create a
repeating pattern with cairoPatternSetExtend
).
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.