Static
loadStatic
loadStatic
maxStatic
makeMake a empty PAGComposition with specified size.
Get a text data of the specified index. The index ranges from 0 to numTexts - 1. Note: It always returns the default text data.
Replace the text data of the specified index. The index ranges from 0 to PAGFile.numTexts - 1. Passing in null for the textData parameter will reset it to default text data.
Replace the image content of the specified index with a PAGImage object. The index ranges from 0 to PAGFile.numImages - 1. Passing in null for the image parameter will reset it to default image content.
Return an array of layers by specified editable index and layer type.
Indicate how to stretch the original duration to fit target duration when file's duration is changed. The default value is PAGTimeStretchMode::Repeat.
Set the timeStretchMode of this file.
Returns the child layer that exists at the specified index.
The child layer at the specified index position.
The index position of the child layer.
Changes the position of an existing child layer in the composition. This affects the layering of child layers.
The child layer for which you want to change the index number.
The resulting index number for the child layer.
Add a PAGLayer to current PAGComposition at the top. If you add a layer that already has a different PAGComposition object as a parent, the layer is removed from the other PAGComposition object.
Remove the specified PAGLayer from current PAGComposition.
Remove the specified PAGLayer from current PAGComposition.
Returns an array of layers that match the specified layer name.
Returns an array of layers that lie under the specified point. The point is in pixels and from this PAGComposition's local coordinates.
Returns the parent PAGComposition of current PAGLayer.
Returns this layer as a type layer.
Generated using TypeDoc
Load pag file from file.