public interface AliyunPasterRender
Modifier and Type | Method and Description |
---|---|
int |
addCaption(AliyunCaption aCaption) |
int |
addCaptionPaster(Bitmap bmp,
EffectCaption caption)
Deprecated.
|
int |
addCaptionPaster(BitmapGenerator generator,
EffectCaption caption)
Deprecated.
|
int |
addEffectPaster(EffectPaster paster)
Adds a sticker.
|
int |
addSubtitle(Bitmap bmp,
EffectText subtitle)
Deprecated.
|
int |
addSubtitle(BitmapGenerator generator,
EffectText subtitle)
Deprecated.
|
int |
applyPaintCanvas(EffectPaint effectPaint)
Adds a doodle.
|
java.util.List<AliyunCaption> |
findCaptions(long timeInUs) |
Size |
getDisplaySize()
Sets the rect of the display area where the sticker is rendered.
|
int |
hidePaster(EffectPaster paster)
Hides a sticker.
|
void |
removeCanvas()
Removes a doodle.
|
int |
removeCaption(AliyunCaption caption) |
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(Bitmap bmp,
EffectCaption caption)
Deprecated.
Replaced by
showCaptionPaster(Bitmap, EffectCaption) |
int |
showCaptionPaster(BitmapGenerator bitmapGenerator,
EffectCaption caption)
Shows an animated caption.
|
int |
showPaster(EffectPaster paster)
Shows a sticker.
|
int |
showTextPaster(Bitmap bmp,
EffectText text)
Shows a standard caption.
|
int |
showTextPaster(BitmapGenerator generator,
EffectText text)
Shows a standard caption.
|
int |
updateCaption(AliyunCaption caption) |
void setDisplaySize(int width, int height)
width
- height
- Size getDisplaySize()
void setOnPasterResumeAndSave(OnPasterResumeAndSave listener)
OnPasterResumeAndSave
is invoked. This method
requires a list of stickers as the input parameter. The PasterTrack
class is used to save stickers.listener
- @Deprecated int addSubtitle(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_INVALID
@Deprecated int addSubtitle(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_INVALID
int 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_INVALID
int 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_SUPPORTED
@Deprecated int addCaptionPaster(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_INVALID
@Deprecated int addCaptionPaster(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_INVALID
int 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(Bitmap bmp, EffectText text)
bmp
- The bitmap image that represents the standard caption.text
- The caption object.int showTextPaster(BitmapGenerator generator, EffectText text)
generator
- text
- int showCaptionPaster(Bitmap bmp, EffectCaption caption)
showCaptionPaster(Bitmap, EffectCaption)
bmp
- The bitmap image that represents the animated caption.caption
- The caption object.int showCaptionPaster(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
int addCaption(AliyunCaption aCaption)
int removeCaption(AliyunCaption caption)
int updateCaption(AliyunCaption caption)
java.util.List<AliyunCaption> findCaptions(long timeInUs)