public class StickerFactory
extends java.lang.Object
构造器和说明 |
---|
StickerFactory() |
限定符和类型 | 方法和说明 |
---|---|
static android.graphics.Bitmap |
createBitmapFromView(android.view.View view,
int edge)
将 View 内容保存为一张图片
|
static android.graphics.Bitmap |
getBitmapForText(android.view.View textView) |
static int |
getBitmapSize(android.graphics.Bitmap bitmap) |
static android.graphics.Bitmap |
megerStickers(android.graphics.Bitmap image,
java.util.List<StickerResult> stickers)
合并贴纸
|
static android.graphics.Bitmap |
megerStickers(android.graphics.Bitmap image,
java.util.List<StickerResult> stickers,
android.graphics.Bitmap.Config colorConfig,
boolean recycle)
合并贴纸
|
public static android.graphics.Bitmap megerStickers(android.graphics.Bitmap image, java.util.List<StickerResult> stickers)
image
- 源图stickers
- 贴纸列表public static android.graphics.Bitmap megerStickers(android.graphics.Bitmap image, java.util.List<StickerResult> stickers, android.graphics.Bitmap.Config colorConfig, boolean recycle)
image
- 源图stickers
- 贴纸列表colorConfig
- 颜色空间 (默认:Config.ARGB_8888)recycle
- 是否回收 image 对象public static android.graphics.Bitmap getBitmapForText(android.view.View textView)
public static android.graphics.Bitmap createBitmapFromView(android.view.View view, int edge)
view
- 内容视图edge
- 图片边缘public static int getBitmapSize(android.graphics.Bitmap bitmap)