docs/javadoc/reference/com/facebook/imageutils/BitmapUtil.html
|
|
Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]
public final class
extends Object
| java.lang.Object | | ↳ | com.facebook.imageutils.BitmapUtil |
This class contains utility method for Bitmap
| Constants |
|---|
| int |
| int |
| int |
| float |
| int |
| int |
| Public Constructors |
|---|
| Public Methods |
|---|
| static Pair<Integer, Integer> |
| Decodes the bounds of an image from its Uri and returns a pair of the dimensions |
| static Pair<Integer, Integer> |
| Decodes only the bounds of an image and returns its width and height or null if the size can't be determined |
| static Pair<Integer, Integer> |
| Decodes the bounds of an image and returns its width and height or null if the size can't be determined |
| static ImageMetaData |
| Decodes the bounds of an image and returns its width and height or null if the size can't be determined. |
| static int |
| Returns the amount of bytes used by a pixel in a specific android.graphics.Bitmap.Config |
| static int |
| Returns the size in byte of an image with specific size and android.graphics.Bitmap.Config |
| static int |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Bytes per pixel definitions
Constant Value: 1 (0x00000001)
Constant Value: 2 (0x00000002)
Constant Value: 4 (0x00000004)
Constant Value: 2048.0
Constant Value: 8 (0x00000008)
Constant Value: 2 (0x00000002)
Decodes the bounds of an image from its Uri and returns a pair of the dimensions
| uri | the Uri of the image |
Decodes only the bounds of an image and returns its width and height or null if the size can't be determined
| bytes | the input byte array of the image |
Decodes the bounds of an image and returns its width and height or null if the size can't be determined
| is | the InputStream containing the image data |
Decodes the bounds of an image and returns its width and height or null if the size can't be determined. It also recovers the color space of the image, or null if it can't be determined.
| is | the InputStream containing the image data |
Returns the amount of bytes used by a pixel in a specific android.graphics.Bitmap.Config
| bitmapConfig | the android.graphics.Bitmap.Config for which the size in byte will be returned |
Returns the size in byte of an image with specific size and android.graphics.Bitmap.Config
| width | the width of the image | | height | the height of the image | | bitmapConfig | the android.graphics.Bitmap.Config for which the size in byte will be returned |
+Generated by Doclava. +