MediaPickerOptions.MaximumWidth Property
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.
Gets or sets the maximum width for image resizing. When set, images will be resized to fit within this width while preserving aspect ratio. A value of 0 or null means no width constraint.
public:
property Nullable<int> MaximumWidth { Nullable<int> get(); void set(Nullable<int> value); };
public int? MaximumWidth { get; set; }
member this.MaximumWidth : Nullable<int> with get, set
Public Property MaximumWidth As Nullable(Of Integer)
Property Value
Remarks
This property only applies to images. It has no effect on video files.
The image will be resized to fit within the specified maximum dimensions while maintaining aspect ratio. If both MaximumWidth and MaximumHeight are specified, the image will be scaled to fit within both constraints. This resizing is applied before any compression quality settings.