FadeOptions Class
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.
Describes the properties of a Fade effect applied to the input media.
public class FadeOptions : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.FadeOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.FadeOptions>
public class FadeOptions
type FadeOptions = class
interface IJsonModel<FadeOptions>
interface IPersistableModel<FadeOptions>
type FadeOptions = class
Public Class FadeOptions
Implements IJsonModel(Of FadeOptions), IPersistableModel(Of FadeOptions)
Public Class FadeOptions
- Inheritance
-
FadeOptions
- Implements
Constructors
FadeOptions(TimeSpan, String) |
Initializes a new instance of FadeOptions. |
Properties
Duration |
The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration). |
FadeColor |
The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000. |
Start |
The position in the input video from where to start fade. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<FadeOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<FadeOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<FadeOptions>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<FadeOptions>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<FadeOptions>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |