a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
64 lines
2.5 KiB
XML
64 lines
2.5 KiB
XML
<Type Name="RadialGradient" FullName="Cairo.RadialGradient">
|
|
<TypeSignature Language="C#" Value="public class RadialGradient : Cairo.Gradient" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>Mono.Cairo</AssemblyName>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Base>
|
|
<BaseTypeName>Cairo.Gradient</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Docs>
|
|
<summary>Extends <see cref="T:Cairo.Gradient" /> to create a new radial gradient between the two circles defined by (cx0, cxy0, radius0) and (cx1, cy1, radius1).
|
|
</summary>
|
|
<remarks>
|
|
<para>Before using the gradient pattern, a number of color stops
|
|
should be defined using AddColorStop() or AddColorStopRgb().</para>
|
|
<para>
|
|
<example>
|
|
<code lang="C#">
|
|
pat = new RadialGradient (0.45, 0.4, 0.1, 0.4, 0.4, 0.5);
|
|
|
|
pat.AddColorStop (0, new Color (1, 1, 1, 1) );
|
|
pat.AddColorStop (1, new Color (0, 0, 0, 1) );
|
|
gr.Pattern = pat;
|
|
gr.Arc (0.5, 0.5, 0.3, 0, 2 * Math.PI);
|
|
gr.Fill ();
|
|
|
|
pat.Destroy ();
|
|
</code>
|
|
</example>
|
|
</para>
|
|
</remarks>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public RadialGradient (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<Parameters>
|
|
<Parameter Name="cx0" Type="System.Double" />
|
|
<Parameter Name="cy0" Type="System.Double" />
|
|
<Parameter Name="radius0" Type="System.Double" />
|
|
<Parameter Name="cx1" Type="System.Double" />
|
|
<Parameter Name="cy1" Type="System.Double" />
|
|
<Parameter Name="radius1" Type="System.Double" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cx0">x coordinate for the center of the start circle</param>
|
|
<param name="cy0">y coordinate for the center of the start circle</param>
|
|
<param name="radius0">radius of the start cirle</param>
|
|
<param name="cx1">x coordinate for the center of the end circle</param>
|
|
<param name="cy1">y coordinate for the center of the end circle</param>
|
|
<param name="radius1">radius of the end cirle</param>
|
|
<summary>Create a new radial gradient <see cref="T:Cairo.Pattern" /> between the two circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1)</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
</Members>
|
|
</Type>
|