ApngImage.InsertFrame

InsertFrame(int)

Effortlessly insert a new frame into your frame collection at the specified with this intuitive method. Ideal for developers seeking precise control over the arrangement of frames in their animations of multi-frame images. A new frame will be created according to the size of the current image.

public ApngFrame InsertFrame(int index)
ParameterTypeDescription
indexInt32The index.

Return Value

The newly created APNG frame.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionindex is less than 0. or index is greater than PageCount.

See Also


InsertFrame(int, RasterImage)

Inserts new frame into the own frame collection at the specified index. The contents of the new frame will be filled from the specified image.

public void InsertFrame(int index, RasterImage frameImage)
ParameterTypeDescription
indexInt32The index.
frameImageRasterImageThe frame image.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionindex is less than 0. or index is greater than PageCount.
ArgumentNullExceptionframeImage is null.

See Also


InsertFrame(int, RasterImage, uint)

Inserts new frame into the own frame collection at the specified index. The contents of the new frame will be filled from the specified image.

public void InsertFrame(int index, RasterImage frameImage, uint frameTime)
ParameterTypeDescription
indexInt32The index.
frameImageRasterImageThe frame image.
frameTimeUInt32The frame duration, in milliseconds.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionindex is less than 0. or index is greater than PageCount.
ArgumentNullExceptionframeImage is null.

See Also