| ColorSourceEffect Class |
Namespace: Microsoft.Graphics.Canvas.Effects
public sealed class ColorSourceEffect : ICanvasEffect, IGraphicsEffect, IGraphicsEffectSource, ICanvasImage, IDisposable
The ColorSourceEffect type exposes the following members.
| Name | Description | |
|---|---|---|
| ColorSourceEffect | Initializes a new instance of the ColorSourceEffect class. |
| Name | Description | |
|---|---|---|
| BufferPrecision | Specifies what precision to use for intermediate buffers when drawing this effect. | |
| CacheOutput | Enables caching the output from drawing this effect. | |
| Color | Specifies the color to be generated. | |
| ColorHdr | Specifies the high-dynamic-range color to be generated. | |
| Name | Attaches a user-defined name string to the effect. |
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the effect. | |
| GetBounds(ICanvasResourceCreator) | Retrieves the bounds of this ColorSourceEffect. | |
| GetBounds(ICanvasResourceCreator, Matrix3x2) | Retrieves the bounds of this ColorSourceEffect. | |
| GetInvalidRectangles | Queries what regions of the effect output have changed since it was last drawn. | |
| GetRequiredSourceRectangle | Queries what part of an effect source image is needed to draw an output region. | |
| GetRequiredSourceRectangles | Queries what parts of the effect source images are needed to draw an output region. | |
| InvalidateSourceRectangle | Notifies the effect that one of its source images has changed. |
This effect generates an infinite expanse of solid color. If you want only a smaller region of solid color, feed its output through the CropEffect.
Note: this effect passes along the specified color value as specified. You must manually pre-multiply the values if you plan to pass the output to effects that expect a pre-multiplied alpha input.
This Windows Runtime type corresponds to the D2D Flood effect.