Android Guides | Samples

Android.Graphics.BitmapFactory.Options Class

See Also: BitmapFactory+Options

Syntax

[Android.Runtime.Register("android/graphics/BitmapFactory$Options", DoNotGenerateAcw=true)]
public class BitmapFactory.Options : Object

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Graphics.BitmapFactory.Options are listed below.

See Also: Object

Public Constructors

Create a default Options object, which if left unchanged will give the same result from the decoder as if null were passed.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

InBitmapBitmap. If set, decode methods that take the Options object will attempt to reuse this bitmap when loading content.
InDensityInt32. The pixel density to use for the bitmap.
InDitherBoolean. If dither is true, the decoder will attempt to dither the decoded image.
InInputShareableBoolean. This field works in conjuction with inPurgeable.
InJustDecodeBoundsBoolean. If set to true, the decoder will return null (no bitmap), but the out... fields will still be set, allowing the caller to query the bitmap without having to allocate the memory for its pixels.
InMutableBoolean. If set, decode methods will always return a mutable Bitmap instead of an immutable one.
InPreferQualityOverSpeedBoolean. If inPreferQualityOverSpeed is set to true, the decoder will try to decode the reconstructed image to a higher quality even at the expense of the decoding speed.
InPreferredConfigBitmap+Config. If this is non-null, the decoder will try to decode into this internal configuration.
InPremultipliedBoolean.
InPurgeableBoolean. If this is set to true, then the resulting bitmap will allocate its pixels such that they can be purged if the system needs to reclaim memory.
InSampleSizeInt32. If set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory.
InScaledBoolean. When this flag is set, if BitmapFactory+Options.InDensity and BitmapFactory+Options.InTargetDensity are not 0, the bitmap will be scaled to match BitmapFactory+Options.InTargetDensity when loaded, rather than relying on the graphics system scaling it each time it is drawn to a Canvas.
InScreenDensityInt32. The pixel density of the actual screen that is being used.
InTargetDensityInt32. The pixel density of the destination this bitmap will be drawn to.
InTempStorageIList<byte>. Temp storage to use for decoding.
MCancelBoolean. Flag to indicate that cancel has been called on this object.
OutHeightInt32. The resulting height of the bitmap, set independent of the state of inJustDecodeBounds.
OutMimeTypeString. If known, this string is set to the mimetype of the decoded image.
OutWidthInt32. The resulting width of the bitmap, set independent of the state of inJustDecodeBounds.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

RequestCancelDecode()
This can be called from another thread while this options object is inside a decode... call.