public final class BitmapTransform extends Object
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Bitmap |
createBitmap(android.graphics.Bitmap pDst,
android.graphics.Bitmap pSrc,
android.graphics.PorterDuff.Mode pMode,
boolean pScale,
boolean pNewInstance)
Method to create a Bitmap with the specified mode
|
static android.graphics.Bitmap |
createBitmap(android.content.Context pContext,
int pDstId,
int pSrcId,
android.graphics.PorterDuff.Mode pMode,
boolean pScale,
boolean pNewInstance)
Method to create a bitmap form two bitmap resources
|
static android.graphics.Bitmap |
getBitmapResources(android.content.Context pContext,
int pResId)
Method to obtain an bitmap form resources Id
|
public static android.graphics.Bitmap getBitmapResources(android.content.Context pContext,
int pResId)
pContext - Application contextpResId - resources Idnullpublic static android.graphics.Bitmap createBitmap(android.content.Context pContext,
int pDstId,
int pSrcId,
android.graphics.PorterDuff.Mode pMode,
boolean pScale,
boolean pNewInstance)
pContext - Application contextpDstId - bitmap destpSrcId - bitmap srcpMode - PorterDuff modepScale - true if we need to scale the src bitmap to the size of the dest bitmappNewInstance - boolean to indicate if this method can modify the Bitmap parameterspublic static android.graphics.Bitmap createBitmap(android.graphics.Bitmap pDst,
android.graphics.Bitmap pSrc,
android.graphics.PorterDuff.Mode pMode,
boolean pScale,
boolean pNewInstance)
pDst - the first bitmappSrc - the second bitmappMode - the selected PorterDuff modepNewInstance - boolean to indicate if this method can modify the Bitmap parametersCopyright © 2013. All Rights Reserved.