RadialGradient.this - multiple declarations
- Function RadialGradient.this
- Function RadialGradient.this
Function RadialGradient.this
Create a RadialGradient
from a existing cairo_pattern_t*.
RadialGradient
is a garbage collected class. It will call cairo_pattern_destroy
when it gets collected by the GC or when dispose() is called.
Prototype
this(
cairo_pattern_t* ptr
);
Warning
ptr
's reference count is not increased by this function!
Adjust reference count before calling it if necessary
Only use this if you know what your doing! This function should not be needed for standard cairoD usage.
Function RadialGradient.this
Creates a new radial gradient pattern between the two
circles defined by (c0
, radius0
) and (c1
, radius1
). Before
using the gradient pattern, a number of color stops should
be defined using Pattern.addColorStopRGB() or
Pattern.addColorStopRGBA().
Prototypes
Parameters
Name | Description |
---|---|
c0 | center of the start circle |
radius0 | radius of the start circle |
c1 | center of the end circle |
radius1 | radius of the end circle |
Note
The coordinates here are in pattern space. For a new pattern,
pattern space is identical to user space, but the relationship
between the spaces can be changed with Pattern.setMatrix
().
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 |