public class

PAGImageLayer

extends PAGLayer
java.lang.Object
   ↳ org.libpag.PAGLayer
     ↳ org.libpag.PAGImageLayer

Summary

[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

Public Constructors

public PAGImageLayer (long nativeContext)

Public Methods

public static PAGImageLayer Make (int width, int height, long duration)

Make a PAGImageLayer with with, height and duration(in microseconds).

public long contentDuration ()

Returns the content duration in microseconds, which indicates the minimal length required for replacement.

public PAGVideoRange[] getVideoRanges ()

Returns the time ranges of the source video for replacement.

public ByteBuffer imageBytes ()

The default image data of this layer, which is webp format.

public void replaceImage (PAGImage image)

[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.

Parameters
image The PAGImage object to replace with.

public void setImage (PAGImage image)

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.

Parameters
image The PAGImage object to replace with.