Animation.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(SKData) |
Creates an animation from Lottie JSON data. |
| Create(SKStream) |
Creates an animation from a Skia stream containing Lottie JSON data. |
| Create(Stream) |
Creates an animation from a .NET stream containing Lottie JSON data. |
| Create(String) |
Creates an animation from a Lottie JSON file. |
Create(SKData)
Creates an animation from Lottie JSON data.
public static SkiaSharp.Skottie.Animation? Create(SkiaSharp.SKData data);
Parameters
- data
- SKData
The Lottie animation data in JSON format.
Returns
A new Animation instance, or null if the data could not be parsed.
Remarks
Use the Builder helper for more options and control over the loading process.
Applies to
Create(SKStream)
Creates an animation from a Skia stream containing Lottie JSON data.
public static SkiaSharp.Skottie.Animation? Create(SkiaSharp.SKStream stream);
Parameters
- stream
- SKStream
A Skia stream containing Lottie animation JSON data.
Returns
A new Animation instance, or null if the stream could not be parsed.
Remarks
Use the Builder helper for more options and control over the loading process.
Applies to
Create(Stream)
Creates an animation from a .NET stream containing Lottie JSON data.
public static SkiaSharp.Skottie.Animation? Create(System.IO.Stream stream);
Parameters
- stream
- Stream
A .NET stream containing Lottie animation JSON data.
Returns
A new Animation instance, or null if the stream could not be parsed.
Remarks
Use the Builder helper for more options and control over the loading process.
Applies to
Create(String)
Creates an animation from a Lottie JSON file.
public static SkiaSharp.Skottie.Animation? Create(string path);
Parameters
- path
- String
The path to a Lottie animation JSON file.
Returns
A new Animation instance, or null if the file could not be loaded or parsed.
Remarks
Use the Builder helper for more options and control over the loading process.