Share via


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);
[<Android.Runtime.Register("decodeRegion", "(Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")>]
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

The decoded bitmap, or null if the image data could not be decoded.

Attributes

Remarks

Java documentation for android.graphics.BitmapRegionDecoder.decodeRegion(android.graphics.Rect, android.graphics.Options).

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