LinearGradientBrush Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Paints, or fills, an area with a linear gradient of color on a hardware display device.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Presentation.Media. . :: . .Brush
    Microsoft.SPOT.Presentation.Media..::..LinearGradientBrush

Namespace:  Microsoft.SPOT.Presentation.Media
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public NotInheritable Class LinearGradientBrush _
    Inherits Brush
public sealed class LinearGradientBrush : Brush
public ref class LinearGradientBrush sealed : public Brush
[<Sealed>]
type LinearGradientBrush =  
    class
        inherit Brush
    end
public final class LinearGradientBrush extends Brush

The LinearGradientBrush type exposes the following members.

Constructors

  Name Description
Public method LinearGradientBrush(Color, Color) Initializes a new instance of the LinearGradientBrush class with the specified starting and ending colors.
Public method LinearGradientBrush(Color, Color, Int32, Int32, Int32, Int32) Initializes a new instance of the LinearGradientBrush class with the specified starting and ending colors and gradient path.

Top

Properties

  Name Description
Public property Opacity Specifies the degree of opacity of the brush's paint or fill. (Inherited from Brush.)

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method RenderEllipse Renders an ellipse. (Inherited from Brush.)
Protected method RenderPolygon Renders a polygon. (Inherited from Brush.)
Protected method RenderRectangle Renders a rectangle. (Inherited from Brush.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public field EndColor Specifies the color at the end of the gradient path. This is the color at the point specified by the EndX and EndY fields.
Public field EndX The horizontal coordinate (relative to the left edge of the area being painted) of the ending point of the gradient path. The default value is 1, which is the right edge of the area.
Public field EndY The vertical coordinate (relative to the top edge of the area being painted) of the ending point of the gradient path. The default value is 1, which is the bottom edge of the area.
Public field MappingMode Specifies how the brush is mapped. The value is set to RelativeToBoundingBox.
Public fieldStatic member RelativeBoundingBoxSize Specifies the size of the bounding box. The value is set to 1000.
Public field StartColor Specifies the color at the beginning of the gradient path. This is the color at the point specified by the StartX and StartY fields.
Public field StartX The horizontal coordinate (relative to the left edge of the area being painted) of the starting point of the gradient path. The default value is 0 (zero), which is the left edge of the area.
Public field StartY The vertical coordinate (relative to the top edge of the area being painted) of the starting point of the gradient path. The default value is 0 (zero), which is the top edge of the area.

Top

Remarks

A "linear gradient of color" is a blend of colors that transistion smoothly through the range of hues. A LinearGradientBrush object paints an area with color that changes gradually along a gradient path (a linear representation of the spectrum), from a specified starting color to a specified ending color.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Presentation.Media Namespace