BitmapRegionDecoder.DecodeRegion(Rect, BitmapFactory+Options) Method

Definition

Decodes a rectangle region in the image specified by rect.

[Android.Runtime.Register("decodeRegion", "(Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Android.Graphics.Bitmap DecodeRegion (Android.Graphics.Rect rect, Android.Graphics.BitmapFactory.Options options);
member this.DecodeRegion : Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> Android.Graphics.Bitmap

Parameters

rect
Rect

The rectangle that specified the region to be decode.

options
BitmapFactory.Options

null-ok; Options that control downsampling. inPurgeable is not supported.

Returns

Bitmap
Attributes

Remarks

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