VideoProfile.AutoFit Property
Gets or set a value indicating whether the output resolution is calculated by fitting the source media item within the profile's size. For example, if AutoFit is set to true and the profile is set to 320 x 240 with an aspect ratio of 16:9, the output size will be 320 x 180. If AutoFit is set to false, the output size will be 320 x 240 and the video will be encoded with non-square pixels.
Namespace: Microsoft.Expression.Encoder.Profiles
Assembly: Microsoft.Expression.Encoder (in microsoft.expression.encoder.dll)
Syntax
'Declaration
Public Property AutoFit As Boolean
'Usage
Dim instance As VideoProfile
Dim value As Boolean
value = instance.AutoFit
instance.AutoFit = value
public bool AutoFit { get; set; }
public:
property bool AutoFit {
bool get ();
void set (bool value);
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
VideoProfile Class
VideoProfile Members
Microsoft.Expression.Encoder.Profiles Namespace