Modifier and Type | Class and Description |
---|---|
static interface |
MetaImage.ColorHint |
static class |
MetaImage.DevicePlatform
Some device preset
|
static interface |
MetaImage.ExifOrientation
EXIF orientation values
|
static class |
MetaImage.FlashMode
Using flash on photo
|
Modifier and Type | Field and Description |
---|---|
static int |
COLOR_1BIT |
static int |
COLOR_MONO |
static int |
COLOR_RGBA |
static int |
COLOR_UNDEFINED |
static int |
ExifFlipHorizontal |
static int |
ExifFlipVertical |
static int |
ExifInvalid |
static int |
ExifNormal |
static int |
ExifRotate180 |
static int |
ExifRotate270 |
static int |
ExifRotate90 |
static int |
ExifTranspose |
static int |
ExifTransverse |
static int |
ExifUndefined |
Constructor and Description |
---|
MetaImage(android.graphics.Bitmap bitmap)
Create
MetaImage with given bitmap and collect metadata from current device |
MetaImage(android.graphics.Bitmap bitmap,
android.content.ContentResolver cr,
android.net.Uri metadataUri)
Deprecated.
|
MetaImage(android.graphics.Bitmap bitmap,
android.content.Context context,
android.net.Uri metadataUri) |
MetaImage(android.graphics.Bitmap bitmap,
String metadataPath)
Create
MetaImage with given bitmap and collect metadata from file path specified |
MetaImage(MetaImage source)
A copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
ensureBitmapMutable()
Deprecated.
|
android.graphics.Bitmap |
getBitmap()
getBitmap
|
android.graphics.Point |
getBitmapBounds()
Deprecated.
|
int |
getColorHint() |
MetaImage.DevicePlatform |
getDevicePlatform() |
int |
getExifOrientation()
Set image orientation as EXIF value
See
MetaImage.ExifOrientation class |
MetaImage.FlashMode |
getFlashMode() |
int |
getIso() |
String |
getMetadataPath(android.content.Context context) |
android.net.Uri |
getMetadataUri() |
int |
getPageNumber() |
static String |
getRealPathFromURI(android.content.ContentResolver cr,
android.net.Uri contentUri)
Useful helper method.
|
boolean |
getStrongShadows()
getStrongShadows
|
boolean |
isBitmapRecycled()
Deprecated.
|
void |
recycleBitmap()
Deprecated.
|
static android.graphics.Bitmap |
safeGetBitmap(MetaImage source)
Safe way to retrieve Bitmap from
source |
static MetaImage |
safeRecycleBitmap(MetaImage source,
MetaImage origin)
Deprecated.
|
void |
setBitmap(android.graphics.Bitmap bitmap)
setBitmap
|
void |
setColorHint(int colorHint) |
void |
setDevicePlatform(MetaImage.DevicePlatform devicePlatform) |
void |
setExifOrientation(int orientation)
Get image orientation as EXIF value
See
getExifOrientation() |
void |
setFlashMode(MetaImage.FlashMode flashMode) |
void |
setIso(int value) |
void |
setMetadataUri(android.net.Uri value) |
void |
setPageNumber(int value) |
void |
setStrongShadows(boolean strongShadows)
Set
true if image has strong shadows |
public static final int ExifInvalid
public static final int ExifUndefined
public static final int ExifNormal
public static final int ExifFlipHorizontal
public static final int ExifRotate180
public static final int ExifFlipVertical
public static final int ExifTranspose
public static final int ExifRotate90
public static final int ExifTransverse
public static final int ExifRotate270
public static final int COLOR_UNDEFINED
public static final int COLOR_1BIT
public static final int COLOR_MONO
public static final int COLOR_RGBA
public MetaImage(android.graphics.Bitmap bitmap)
MetaImage
with given bitmap and collect metadata from current devicebitmap
- Bitmap source imagepublic MetaImage(android.graphics.Bitmap bitmap, String metadataPath)
MetaImage
with given bitmap and collect metadata from file path specifiedbitmap
- image buffermetadataPath
- image path to load metadata@Deprecated public MetaImage(android.graphics.Bitmap bitmap, android.content.ContentResolver cr, android.net.Uri metadataUri)
MetaImage(Bitmap, Context, Uri)
instead
Create MetaImage
from MEDIA STORE URIbitmap
- image buffercr
- to resolve UrimetadataUri
- image URI in mediastore to load metadatapublic MetaImage(android.graphics.Bitmap bitmap, android.content.Context context, android.net.Uri metadataUri)
public MetaImage(@NonNull MetaImage source)
source
- MetaImage to copy frompublic int getIso()
public void setIso(int value)
public MetaImage.FlashMode getFlashMode()
public void setFlashMode(MetaImage.FlashMode flashMode)
public MetaImage.DevicePlatform getDevicePlatform()
public void setDevicePlatform(MetaImage.DevicePlatform devicePlatform)
public int getExifOrientation()
MetaImage.ExifOrientation
classpublic void setExifOrientation(int orientation)
getExifOrientation()
orientation
- image EXIF orientationpublic boolean getStrongShadows()
public void setStrongShadows(boolean strongShadows)
true
if image has strong shadowsstrongShadows
- true if image has stong shadowspublic int getColorHint()
public void setColorHint(int colorHint)
public int getPageNumber()
public void setPageNumber(int value)
public void setMetadataUri(android.net.Uri value)
public android.net.Uri getMetadataUri()
public String getMetadataPath(@NonNull android.content.Context context)
public android.graphics.Bitmap getBitmap()
public void setBitmap(@NonNull android.graphics.Bitmap bitmap)
bitmap
- Bitmap object@Deprecated public android.graphics.Point getBitmapBounds()
null
@Deprecated public void recycleBitmap()
@Deprecated public boolean isBitmapRecycled()
MetaImage
is invalid
NOTE: Don't check getBitmap()
result for recycled state. Use this function unsted!@Deprecated public static MetaImage safeRecycleBitmap(@Nullable MetaImage source, @Nullable MetaImage origin)
source
if it differs from
one of target
Can be used to re-assign with recycle.public static android.graphics.Bitmap safeGetBitmap(@Nullable MetaImage source)
source
source
- MetaImage
@Deprecated public void ensureBitmapMutable()
Bitmap
public static String getRealPathFromURI(@NonNull android.content.ContentResolver cr, @NonNull android.net.Uri contentUri)
cr
- ContentResolvercontentUri
- image source Uri