Lingua

MediaMetadata.Builder.SetBitmapDimensionLimit(Int32) Method

Definition

Sets the maximum width/height (in pixels) for the bitmaps in the metadata.

[Android.Runtime.Register("setBitmapDimensionLimit", "(I)Landroid/media/MediaMetadata$Builder;", "", ApiSince=31)]
public Android.Media.MediaMetadata.Builder SetBitmapDimensionLimit(int bitmapDimensionLimit);
[<Android.Runtime.Register("setBitmapDimensionLimit", "(I)Landroid/media/MediaMetadata$Builder;", "", ApiSince=31)>]
member this.SetBitmapDimensionLimit : int -> Android.Media.MediaMetadata.Builder

Parameters

bitmapDimensionLimit
Int32

The maximum width/height (in pixels) for bitmaps contained in the metadata. Non-positive values are ignored. Pass Integer.MAX_VALUE to unset the limit. Value is 1 or greater

Returns

Attributes

Remarks

Sets the maximum width/height (in pixels) for the bitmaps in the metadata. Bitmaps will be replaced with scaled down copies if their width (or height) is larger than bitmapDimensionLimit. In order to unset the limit, pass Integer.MAX_VALUE as bitmapDimensionLimit.

Android reference for android.media.MediaMetadata.Builder.setBitmapDimensionLimit.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to