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 | |
---|---|---|
LinearGradientBrush(Color, Color) | Initializes a new instance of the LinearGradientBrush class with the specified starting and ending colors. | |
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 | |
---|---|---|
Opacity | Specifies the degree of opacity of the brush's paint or fill. (Inherited from Brush.) |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
RenderEllipse | Renders an ellipse. (Inherited from Brush.) | |
RenderPolygon | Renders a polygon. (Inherited from Brush.) | |
RenderRectangle | Renders a rectangle. (Inherited from Brush.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
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. | |
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. | |
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. | |
MappingMode | Specifies how the brush is mapped. The value is set to RelativeToBoundingBox. | |
RelativeBoundingBoxSize | Specifies the size of the bounding box. The value is set to 1000. | |
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. | |
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. | |
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.