Share via


MediaPickerOptions.MaximumWidth Property

Definition

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.

Applies to