BrushAnimator.CreateAsync(Uri, RepeatBehavior, IProgress?) method¶
Defined in
Type: BrushAnimator
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, IProgress<int>? progress = null) - 2.
public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory, IProgress<int>? progress = null) - 3.
public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior) - 4.
public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory)
1. Overload¶
public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, IProgress<int>? progress = null)
Summary: Creates the asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
sourceUri | Uri | The source URI. |
repeatBehavior | RepeatBehavior | The repeat behavior. |
progress = null | IProgress | The progress. |
Returns: Task
2. Overload¶
public static Task<BrushAnimator> CreateAsync(Uri sourceUri, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory, IProgress<int>? progress = null)
Summary: Creates the asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
sourceUri | Uri | The source URI. |
repeatBehavior | RepeatBehavior | The repeat behavior. |
cacheFrameDataInMemory | bool | if set to true [cache frame data in memory]. |
progress = null | IProgress | The progress. |
Returns: Task
3. Overload¶
public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior)
Summary: Creates the asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
sourceStream | Stream | The source stream. |
repeatBehavior | RepeatBehavior | The repeat behavior. |
Returns: Task
4. Overload¶
public static Task<BrushAnimator> CreateAsync(Stream sourceStream, RepeatBehavior repeatBehavior, bool cacheFrameDataInMemory)
Summary: Creates the asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
sourceStream | Stream | The source stream. |
repeatBehavior | RepeatBehavior | The repeat behavior. |
cacheFrameDataInMemory | bool | if set to true [cache frame data in memory]. |
Returns: Task