/**@class android.graphics.BitmapFactory
@extends java.lang.Object

 Creates Bitmap objects from various sources, including files, streams,
 and byte-arrays.
*/
var BitmapFactory = {

/**Decode a file path into a bitmap. If the specified file name is null,
 or cannot be decoded into a bitmap, the function returns null.
@param {String} pathName complete path name for the file to be decoded.
@param {Object {BitmapFactory.Options}} opts null-ok; Options that control downsampling and whether the
             image should be completely decoded, or just is size returned.
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image data could not be
         decoded, or, if opts is non-null, if opts requested only the
         size be returned (in opts.outWidth and opts.outHeight)
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}
*/
decodeFile : function(  ) {},

/**Decode a file path into a bitmap. If the specified file name is null,
 or cannot be decoded into a bitmap, the function returns null.
@param {String} pathName complete path name for the file to be decoded.
@return {Object {android.graphics.Bitmap}} the resulting decoded bitmap, or null if it could not be decoded.
*/
decodeFile : function(  ) {},

/**Decode a new Bitmap from an InputStream. This InputStream was obtained from
 resources, which we pass to be able to scale the bitmap accordingly.
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}
*/
decodeResourceStream : function(  ) {},

/**Synonym for opening the given resource and calling
 {@link #decodeResourceStream}.
@param {Object {Resources}} res   The resources object containing the image data
@param {Number} id The resource id of the image data
@param {Object {BitmapFactory.Options}} opts null-ok; Options that control downsampling and whether the
             image should be completely decoded, or just is size returned.
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image data could not be
         decoded, or, if opts is non-null, if opts requested only the
         size be returned (in opts.outWidth and opts.outHeight)
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}
*/
decodeResource : function(  ) {},

/**Synonym for {@link #decodeResource(Resources, int, android.graphics.BitmapFactory.Options)}
 with null Options.
@param {Object {Resources}} res The resources object containing the image data
@param {Number} id The resource id of the image data
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image could not be decoded.
*/
decodeResource : function(  ) {},

/**Decode an immutable bitmap from the specified byte array.
@param {Object {byte[]}} data byte array of compressed image data
@param {Number} offset offset into imageData for where the decoder should begin
               parsing.
@param {Number} length the number of bytes, beginning at offset, to parse
@param {Object {BitmapFactory.Options}} opts null-ok; Options that control downsampling and whether the
             image should be completely decoded, or just is size returned.
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image data could not be
         decoded, or, if opts is non-null, if opts requested only the
         size be returned (in opts.outWidth and opts.outHeight)
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}
*/
decodeByteArray : function(  ) {},

/**Decode an immutable bitmap from the specified byte array.
@param {Object {byte[]}} data byte array of compressed image data
@param {Number} offset offset into imageData for where the decoder should begin
               parsing.
@param {Number} length the number of bytes, beginning at offset, to parse
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image could not be decoded.
*/
decodeByteArray : function(  ) {},

/**Decode an input stream into a bitmap. If the input stream is null, or
 cannot be used to decode a bitmap, the function returns null.
 The stream's position will be where ever it was after the encoded data
 was read.
@param {Object {InputStream}} is The input stream that holds the raw data to be decoded into a
           bitmap.
@param {Object {Rect}} outPadding If not null, return the padding rect for the bitmap if
                   it exists, otherwise set padding to [-1,-1,-1,-1]. If
                   no bitmap is returned (null) then padding is
                   unchanged.
@param {Object {BitmapFactory.Options}} opts null-ok; Options that control downsampling and whether the
             image should be completely decoded, or just is size returned.
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image data could not be
         decoded, or, if opts is non-null, if opts requested only the
         size be returned (in opts.outWidth and opts.outHeight)
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}

 <p class="note">Prior to {@link android.os.Build.VERSION_CODES#KITKAT},
 if {@link InputStream#markSupported is.markSupported()} returns true,
 <code>is.mark(1024)</code> would be called. As of
 {@link android.os.Build.VERSION_CODES#KITKAT}, this is no longer the case.</p>
*/
decodeStream : function(  ) {},

/**Decode an input stream into a bitmap. If the input stream is null, or
 cannot be used to decode a bitmap, the function returns null.
 The stream's position will be where ever it was after the encoded data
 was read.
@param {Object {InputStream}} is The input stream that holds the raw data to be decoded into a
           bitmap.
@return {Object {android.graphics.Bitmap}} The decoded bitmap, or null if the image data could not be decoded.
*/
decodeStream : function(  ) {},

/**Decode a bitmap from the file descriptor. If the bitmap cannot be decoded
 return null. The position within the descriptor will not be changed when
 this returns, so the descriptor can be used again as-is.
@param {Object {FileDescriptor}} fd The file descriptor containing the bitmap data to decode
@param {Object {Rect}} outPadding If not null, return the padding rect for the bitmap if
                   it exists, otherwise set padding to [-1,-1,-1,-1]. If
                   no bitmap is returned (null) then padding is
                   unchanged.
@param {Object {BitmapFactory.Options}} opts null-ok; Options that control downsampling and whether the
             image should be completely decoded, or just its size returned.
@return {Object {android.graphics.Bitmap}} the decoded bitmap, or null
@throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
         is {@link android.graphics.Bitmap.Config#HARDWARE}
         and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
         is not {@link ColorSpace.Model#RGB RGB}, or if the specified color space's transfer
         function is not an {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}
*/
decodeFileDescriptor : function(  ) {},

/**Decode a bitmap from the file descriptor. If the bitmap cannot be decoded
 return null. The position within the descriptor will not be changed when
 this returns, so the descriptor can be used again as is.
@param {Object {FileDescriptor}} fd The file descriptor containing the bitmap data to decode
@return {Object {android.graphics.Bitmap}} the decoded bitmap, or null
*/
decodeFileDescriptor : function(  ) {},


};