Share via


MediaPickerOptions.RotateImage Property

Definition

Gets or sets whether to automatically rotate the image based on EXIF orientation data. When true, the image will be rotated to the correct orientation. Default value is false.

public:
 property bool RotateImage { bool get(); void set(bool value); };
public bool RotateImage { get; set; }
member this.RotateImage : bool with get, set
Public Property RotateImage As Boolean

Property Value

Remarks

This property only applies to images. It has no effect on video files.

When enabled, the EXIF orientation data will be applied to correctly orient the image, and the orientation flag will be reset to avoid duplicate rotations in image viewers.

This rotation happens before any resizing or compression is applied.

Please note that performance might be affected by the rotation operation, especially on lower-end devices.

Applies to