Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LinearGradient.xml « Cairo « en « Documentation « Mono.Cairo « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae080e5e4c440c73514065b32c410466a3d4b408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<Type Name="LinearGradient" FullName="Cairo.LinearGradient">
  <TypeSignature Language="C#" Value="public class LinearGradient : 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" /> by providing a linear gradient along the line defined by (x0, y0) and (x1, y1).  </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#">
Pattern pat;

pat = new LinearGradient (0.0, 0.0,  0.0, 1.0);
pat.AddColorStop (1, new Color (0, 0, 0, 1) );
pat.AddColorStop (0, new Color (1, 1, 1, 1) );

gr.Rectangle ( new PointD (0, 0), 1, 1);
gr.Pattern =  pat;
gr.Fill ();

pat.Destroy ();
  </code>
        </example>
      </para>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public LinearGradient (double x0, double y0, double x1, double y1);" />
      <MemberType>Constructor</MemberType>
      <Parameters>
        <Parameter Name="x0" Type="System.Double" />
        <Parameter Name="y0" Type="System.Double" />
        <Parameter Name="x1" Type="System.Double" />
        <Parameter Name="y1" Type="System.Double" />
      </Parameters>
      <Docs>
        <param name="x0"> x coordinate of the start point </param>
        <param name="y0">y coordinate of the start point</param>
        <param name="x1">x coordinate of the end point</param>
        <param name="y1">y coordinate of the end point</param>
        <summary>Create a new linear gradient <see cref="T:Cairo.Pattern" /> along the line defined by (x0, y0) and (x1, y1). </summary>
        <remarks />
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="LinearPoints">
      <MemberSignature Language="C#" Value="public Cairo.PointD[] LinearPoints { get; }" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Cairo.PointD[]</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Gets the gradient endpoints for a linear gradient</summary>
        <value>A Array of <see cref="t:Cairo.PointD" /> with the Start- and Endpoint</value>
        <remarks />
      </Docs>
    </Member>
  </Members>
</Type>