public class TransparentJpeg
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
combinationExists(java.io.File dir,
java.lang.String filename,
boolean cleanupIfNot)
Check if the RGB and ALPHA channel's exists
|
static android.graphics.Bitmap |
combineColorWithMask(android.graphics.Bitmap rgbBitmap,
android.graphics.Bitmap maskBitmap)
Load the RGB and ALPHA channel and combine them into one Bitmap.
|
static void |
deleteTransparentJpeg(java.io.File dir,
java.lang.String filename)
Delete the RGB and ALPHA Jpeg.
|
static android.graphics.Bitmap |
loadTransparentJpeg(java.io.File dir,
java.lang.String filename)
Load the RGB and ALPHA channel and combine them into one Bitmap.
|
static boolean |
saveTransparentJpeg(java.io.File dir,
java.lang.String filename,
android.graphics.Bitmap bitmap)
Save ARGB Bitmap in two JPEG files
|
static boolean |
saveTransparentJpeg(java.io.File dir,
java.lang.String filename,
GlRawBitmap glRawBitmap)
Save ARGB Bitmap in two JPEG files
|
public static boolean saveTransparentJpeg(java.io.File dir, java.lang.String filename, android.graphics.Bitmap bitmap)
dir
- saveImage directoryfilename
- the filename prefixbitmap
- the bitmap that should be savedpublic static boolean saveTransparentJpeg(java.io.File dir, java.lang.String filename, GlRawBitmap glRawBitmap)
dir
- saveImage directoryfilename
- the filename prefixglRawBitmap
- the glBitmap data that should be savedpublic static void deleteTransparentJpeg(java.io.File dir, java.lang.String filename)
dir
- saveImage directoryfilename
- the filename prefixpublic static boolean combinationExists(java.io.File dir, java.lang.String filename, boolean cleanupIfNot)
dir
- saveImage directoryfilename
- the filename prefixcleanupIfNot
- delete the second channel if the other not presentpublic static android.graphics.Bitmap loadTransparentJpeg(java.io.File dir, java.lang.String filename)
dir
- saveImage directoryfilename
- the filename prefixpublic static android.graphics.Bitmap combineColorWithMask(@NonNull android.graphics.Bitmap rgbBitmap, @NonNull android.graphics.Bitmap maskBitmap)
rgbBitmap
- RGB color informations ARGB_8888[COLOR + A=255]maskBitmap
- BW mask alpha informations ARGB_8888[(R=G=B + A=255)]