Class VideoResizeOptions
Represents options for resizing videos.
Implements
Namespace: FulcrumFS.Videos
Assembly: FulcrumFS.Videos.dll
Syntax
public sealed record VideoResizeOptions : IEquatable<VideoResizeOptions>
Constructors
| Name | Description |
|---|---|
| VideoResizeOptions(VideoResizeMode, int, int, bool) | Initializes a new instance of the VideoResizeOptions class with the specified mode and target size. Note: restrictions of H.264 and HEVC still apply when rescaling videos, such as requiring even dimensions with 4:2:0 subsampling, being internally padded up to block sizes, etc.; if the size you specify is too small for the video to be possible, an exception will be thrown during processing. |
Properties
| Name | Description |
|---|---|
| Height | Gets or initializes the target height in pixels. |
| MatchSourceOrientation | Gets or initializes a value indicating whether the target Width and Height should be swapped prior to resizing when needed so that the longest target dimension matches the longest source dimension (i.e. portrait targets are applied to portrait sources and landscape targets to landscape sources). |
| Mode | Gets or initializes the resize mode to use when resizing videos. |
| Width | Gets or initializes the target width in pixels. |