public interface AliyunPasterRender
| Modifier and Type | Method and Description |
|---|---|
int |
addCaptionPaster(android.graphics.Bitmap bmp,
EffectCaption caption)
Adds an animated caption.
|
int |
addCaptionPaster(com.aliyun.nativerender.BitmapGenerator generator,
EffectCaption caption)
Adds an animated caption.
|
int |
addEffectPaster(EffectPaster paster)
Adds a sticker.
|
int |
addSubtitle(android.graphics.Bitmap bmp,
EffectText subtitle)
Adds a standard caption.
|
int |
addSubtitle(com.aliyun.nativerender.BitmapGenerator generator,
EffectText subtitle)
Adds a standard caption.
|
int |
applyPaintCanvas(EffectPaint effectPaint)
Adds a doodle.
|
int |
hidePaster(EffectPaster paster)
Hides a sticker.
|
void |
removeCanvas()
Removes a doodle.
|
int |
removePaster(EffectPaster paster)
Removes a sticker.
|
void |
setDisplaySize(int width,
int height)
Sets the size of the display area where the sticker is rendered.
|
int |
setEffectWaterMark(EffectImage image)
Adds a watermark.
|
void |
setOnPasterResumeAndSave(OnPasterResumeAndSave listener)
Sets the callback that is invoked when a sticker is restored or saved.
|
int |
showCaptionPaster(android.graphics.Bitmap bmp,
EffectCaption caption)
Deprecated.
Replaced by
showCaptionPaster(Bitmap, EffectCaption) |
int |
showCaptionPaster(com.aliyun.nativerender.BitmapGenerator bitmapGenerator,
EffectCaption caption)
Shows an animated caption.
|
int |
showPaster(EffectPaster paster)
Shows a sticker.
|
int |
showTextPaster(android.graphics.Bitmap bmp,
EffectText text)
Shows a standard caption.
|
int |
showTextPaster(com.aliyun.nativerender.BitmapGenerator generator,
EffectText text)
Shows a standard caption.
|
void setDisplaySize(int width,
int height)
width - height - void setOnPasterResumeAndSave(OnPasterResumeAndSave listener)
OnPasterResumeAndSave is invoked. This method
requires a list of stickers as the input parameter. The PasterDescriptor class is used to save stickers.listener - int addSubtitle(android.graphics.Bitmap bmp,
EffectText subtitle)
bmp - The bitmap image that represents the standard caption.subtitle - The caption object.AliyunErrorCode.ERROR_DUPLICATE_ADD_EFFECT
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALIDint addSubtitle(com.aliyun.nativerender.BitmapGenerator generator,
EffectText subtitle)
generator - The generator that generates the bitmap image representing the standard caption.subtitle - The caption object.AliyunErrorCode.ERROR_DUPLICATE_ADD_EFFECT
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALIDint addEffectPaster(EffectPaster paster)
paster - The sticker object.AliyunErrorCode.ERROR_DUPLICATE_ADD_EFFECT
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_PARSE_RESOURCE_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALIDint setEffectWaterMark(EffectImage image)
image - The watermark object.AliyunErrorCode.ERROR_EFFECT_USE_FAILED
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTEDint addCaptionPaster(android.graphics.Bitmap bmp,
EffectCaption caption)
bmp - The bitmap image that represents the animated caption.caption - The caption object.AliyunErrorCode.ERROR_DUPLICATE_ADD_EFFECT
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTED
AliyunEditorErrorCode.SVIDEO_EDITOR_PARSE_RESOURCE_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALIDint addCaptionPaster(com.aliyun.nativerender.BitmapGenerator generator,
EffectCaption caption)
generator - The generator that generates the bitmap image representing the animated caption.caption - The caption object.AliyunErrorCode.ERROR_DUPLICATE_ADD_EFFECT
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTED
AliyunEditorErrorCode.SVIDEO_EDITOR_PARSE_RESOURCE_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALIDint removePaster(EffectPaster paster)
paster - The sticker object.int hidePaster(EffectPaster paster)
paster - The sticker object.int showPaster(EffectPaster paster)
paster - The sticker object.int showTextPaster(android.graphics.Bitmap bmp,
EffectText text)
bmp - The bitmap image that represents the standard caption.text - The caption object.int showTextPaster(com.aliyun.nativerender.BitmapGenerator generator,
EffectText text)
generator - text - int showCaptionPaster(android.graphics.Bitmap bmp,
EffectCaption caption)
showCaptionPaster(Bitmap, EffectCaption)bmp - The bitmap image that represents the animated caption.caption - The caption object.int showCaptionPaster(com.aliyun.nativerender.BitmapGenerator bitmapGenerator,
EffectCaption caption)
bitmapGenerator - The generator that generates the bitmap image representing the animated caption.caption - The caption object.void removeCanvas()
int applyPaintCanvas(EffectPaint effectPaint)
effectPaint - AliyunErrorCode.ERROR_EFFECT_USE_FAILED
AliyunErrorCode.ERROR_PARAM_IMAGE_FILE_PATH_INVALID
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTED