public interface AliyunPasterBaseView
AliyunPasterController.setPasterView(AliyunPasterBaseView)
to pass implementations to shortvideo SDK. The SDK then calls the methods in the implementations to render stickers, animated captions, and standard captions.Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
getBackgroundBitmap()
Gets the background image.
|
int |
getPasterCenterX()
Gets the x coordinate of the centroid of the sticker.
|
int |
getPasterCenterY()
Gets the y coordinate of the centroid of the sticker.
|
int |
getPasterHeight()
Gets the height of the sticker.
|
float |
getPasterRotation()
Gets the rotation angle of the sticker.
|
java.lang.String |
getPasterTextFont()
Gets the path to the font file.
|
int |
getPasterTextHeight()
Gets the text height.
|
int |
getPasterTextOffsetX()
Gets the offset of the text relative to the background sticker on the x coordinate.
|
int |
getPasterTextOffsetY()
Gets the offset of the text relative to the background sticker on the y coordinate.
|
float |
getPasterTextRotation()
Gets the text rotation angle.
|
int |
getPasterTextWidth()
Gets the text width.
|
android.view.View |
getPasterView()
Gets the view that contains the sticker in the UI layer.
|
int |
getPasterWidth()
Gets the width of the sticker.
|
java.lang.String |
getText()
Gets the text contents.
|
android.text.Layout.Alignment |
getTextAlign()
Gets the text alignment method.
|
int |
getTextBgLabelColor()
Gets the background color of the text.
|
int |
getTextColor()
Gets the text color.
|
int |
getTextFixSize()
Gets the text size.
|
int |
getTextMaxLines()
Gets the maximum number of text lines.
|
int |
getTextPaddingX()
Gets the x coordinate of the text relative to the origin in the upper left corner.
|
int |
getTextPaddingY()
Gets the y coordinate of the text relative to the origin in the upper left corner.
|
int |
getTextStrokeColor()
Gets the text stroke color.
|
android.view.View |
getTextView()
Gets the view that contains the caption in the UI layer.
|
boolean |
isPasterMirrored()
Gets whether to flip the sticker.
|
boolean |
isTextHasLabel()
Gets whether the text has background color.
|
boolean |
isTextHasStroke()
Gets whether the text is stroked.
|
android.graphics.Bitmap |
transToImage()
Converts text to an image.
|
int getTextMaxLines()
android.text.Layout.Alignment getTextAlign()
int getTextPaddingX()
int getTextPaddingY()
int getTextFixSize()
android.graphics.Bitmap getBackgroundBitmap()
java.lang.String getText()
int getTextColor()
int getTextStrokeColor()
boolean isTextHasStroke()
boolean isTextHasLabel()
int getTextBgLabelColor()
int getPasterTextOffsetX()
int getPasterTextOffsetY()
int getPasterTextWidth()
int getPasterTextHeight()
float getPasterTextRotation()
java.lang.String getPasterTextFont()
int getPasterWidth()
int getPasterHeight()
int getPasterCenterY()
int getPasterCenterX()
float getPasterRotation()
android.graphics.Bitmap transToImage()
android.view.View getPasterView()
android.view.View getTextView()
boolean isPasterMirrored()