PAGImageLayer Class Reference

Inherits from PAGLayer : NSObject
Declared in PAGImageLayer.h

+ Make:duration:

Make a PAGImageLayer with size and duration(in microseconds).

+ (instancetype)Make:(CGSize)size duration:(int64_t)duration

Declared In

PAGImageLayer.h

– getVideoRanges

Returns the time ranges of the source video for replacement.

- (NSArray<PAGVideoRange*> *)getVideoRanges

Declared In

PAGImageLayer.h

– replaceImage:

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

- (void)replaceImage:(PAGImage *)image

Parameters

image

The PAGImage object to replace with.

Declared In

PAGImageLayer.h

– setImage:

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.

- (void)setImage:(PAGImage *)image

Parameters

image

The PAGImage object to replace with.

Declared In

PAGImageLayer.h

– contentDuration

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

- (int64_t)contentDuration

Declared In

PAGImageLayer.h

– imageBytes

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

- (NSData *)imageBytes

Declared In

PAGImageLayer.h