Class ImageDecoder
public class ImageDecoder : AutoCloseable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IAutoCloseable
- Inheritance
-
ImageDecoder
- Implements
- Extension Methods
Constructors
ImageDecoder(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ImageDecoder(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
ALLOCATOR_DEFAULT
public static int ALLOCATOR_DEFAULT { get; set; }
Property Value
ALLOCATOR_HARDWARE
public static int ALLOCATOR_HARDWARE { get; set; }
Property Value
ALLOCATOR_SHARED_MEMORY
public static int ALLOCATOR_SHARED_MEMORY { get; set; }
Property Value
ALLOCATOR_SOFTWARE
public static int ALLOCATOR_SOFTWARE { get; set; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
MEMORY_POLICY_DEFAULT
public static int MEMORY_POLICY_DEFAULT { get; set; }
Property Value
MEMORY_POLICY_LOW_RAM
public static int MEMORY_POLICY_LOW_RAM { get; set; }
Property Value
Methods
Close()
public void Close()
CreateSource(ContentResolver, Uri)
public static ImageDecoder.Source CreateSource(ContentResolver arg0, Uri arg1)
Parameters
arg0ContentResolverarg1Uri
Returns
CreateSource(AssetManager, String)
public static ImageDecoder.Source CreateSource(AssetManager arg0, String arg1)
Parameters
arg0AssetManagerarg1String
Returns
CreateSource(Resources, int)
public static ImageDecoder.Source CreateSource(Resources arg0, int arg1)
Parameters
Returns
CreateSource(File)
public static ImageDecoder.Source CreateSource(File arg0)
Parameters
Returns
CreateSource(ByteBuffer)
public static ImageDecoder.Source CreateSource(ByteBuffer arg0)
Parameters
arg0ByteBuffer
Returns
CreateSource(Callable<AssetFileDescriptor>)
public static ImageDecoder.Source CreateSource(Callable<AssetFileDescriptor> arg0)
Parameters
Returns
CreateSource(byte[])
public static ImageDecoder.Source CreateSource(byte[] arg0)
Parameters
Returns
CreateSource(byte[], int, int)
public static ImageDecoder.Source CreateSource(byte[] arg0, int arg1, int arg2)
Parameters
Returns
Exceptions
DecodeBitmap(Source)
public static Bitmap DecodeBitmap(ImageDecoder.Source arg0)
Parameters
Returns
Exceptions
DecodeBitmap(Source, OnHeaderDecodedListener)
public static Bitmap DecodeBitmap(ImageDecoder.Source arg0, ImageDecoder.OnHeaderDecodedListener arg1)
Parameters
Returns
Exceptions
DecodeDrawable(Source)
public static Drawable DecodeDrawable(ImageDecoder.Source arg0)
Parameters
Returns
Exceptions
DecodeDrawable(Source, OnHeaderDecodedListener)
public static Drawable DecodeDrawable(ImageDecoder.Source arg0, ImageDecoder.OnHeaderDecodedListener arg1)
Parameters
Returns
Exceptions
GetAllocator()
public int GetAllocator()
Returns
GetCrop()
public Rect GetCrop()
Returns
GetMemorySizePolicy()
public int GetMemorySizePolicy()
Returns
GetOnPartialImageListener()
public ImageDecoder.OnPartialImageListener GetOnPartialImageListener()
Returns
GetOnPartialImageListenerDirect()
public ImageDecoder.OnPartialImageListener GetOnPartialImageListenerDirect()
Returns
GetPostProcessor()
public PostProcessor GetPostProcessor()
Returns
IsDecodeAsAlphaMaskEnabled()
public bool IsDecodeAsAlphaMaskEnabled()
Returns
IsMimeTypeSupported(String)
public static bool IsMimeTypeSupported(String arg0)
Parameters
Returns
IsMutableRequired()
public bool IsMutableRequired()
Returns
IsUnpremultipliedRequired()
public bool IsUnpremultipliedRequired()
Returns
SetAllocator(int)
public void SetAllocator(int arg0)
Parameters
SetCrop(Rect)
public void SetCrop(Rect arg0)
Parameters
SetDecodeAsAlphaMaskEnabled(bool)
public void SetDecodeAsAlphaMaskEnabled(bool arg0)
Parameters
SetMemorySizePolicy(int)
public void SetMemorySizePolicy(int arg0)
Parameters
SetMutableRequired(bool)
public void SetMutableRequired(bool arg0)
Parameters
SetOnPartialImageListener(OnPartialImageListener)
public void SetOnPartialImageListener(ImageDecoder.OnPartialImageListener arg0)
Parameters
SetPostProcessor(PostProcessor)
public void SetPostProcessor(PostProcessor arg0)
Parameters
SetTargetColorSpace(ColorSpace)
public void SetTargetColorSpace(ColorSpace arg0)
Parameters
arg0ColorSpace
SetTargetSampleSize(int)
public void SetTargetSampleSize(int arg0)
Parameters
SetTargetSize(int, int)
public void SetTargetSize(int arg0, int arg1)
Parameters
SetUnpremultipliedRequired(bool)
public void SetUnpremultipliedRequired(bool arg0)