java.lang.Object | ||
↳ | org.libpag.PAGLayer | |
↳ | org.libpag.PAGImageLayer |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PAGImageLayer(long nativeContext) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static PAGImageLayer |
Make(int width, int height, long duration)
Make a PAGImageLayer with with, height and duration(in microseconds).
| ||||||||||
long |
contentDuration()
Returns the content duration in microseconds, which indicates the minimal length required for
replacement.
| ||||||||||
PAGVideoRange[] |
getVideoRanges()
Returns the time ranges of the source video for replacement.
| ||||||||||
ByteBuffer |
imageBytes()
The default image data of this layer, which is webp format.
| ||||||||||
void |
replaceImage(PAGImage image)
[Deprecated]
Replace the original image content with the specified PAGImage object.
| ||||||||||
void |
setImage(PAGImage image)
Replace the original image content with the specified PAGImage object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.libpag.PAGLayer
| |||||||||||
From class
java.lang.Object
|
Make a PAGImageLayer with with, height and duration(in microseconds).
Returns the content duration in microseconds, which indicates the minimal length required for replacement.
Returns the time ranges of the source video for replacement.
The default image data of this layer, which is webp format.
[Deprecated] Replace the original image content with the specified PAGImage object. Passing in null for the image parameter resets the layer to its default image content. The replaceImage() method modifies all associated PAGImageLayers that have the same editableIndex to this layer.
image | The PAGImage object to replace with. |
---|
Replace the original image content with the specified PAGImage object. Passing in null for the image parameter resets the layer to its default image content. The setImage() method only modifies the content of the calling PAGImageLayer.
image | The PAGImage object to replace with. |
---|