BitmapRegionDecoder.DecodeRegion(Rect, BitmapFactory+Options) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.