Android.Graphics.BitmapRegionDecoder.NewInstance Method
Create a BitmapRegionDecoder from the specified byte array.

Syntax

[Android.Runtime.Register("newInstance", "([BIIZ)Landroid/graphics/BitmapRegionDecoder;", "")]
public static BitmapRegionDecoder NewInstance (byte[] p0, int p1, int p2, bool p3)

Parameters

data
byte array of compressed image data.
offset
offset into data for where the decoder should begin parsing.
length
the number of bytes, beginning at offset, to parse
isShareable
If this is true, then the BitmapRegionDecoder may keep a shallow reference to the input. If this is false, then the BitmapRegionDecoder will explicitly make a copy of the input data, and keep that. Even if sharing is allowed, the implementation may still decide to make a deep copy of the input data. If an image is progressively encoded, allowing sharing may degrade the decoding speed.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif the image format is not supported or can not be decoded.

Remarks

Create a BitmapRegionDecoder from the specified byte array. Currently only the JPEG and PNG formats are supported.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10