InsertFrame

ApngImage.InsertFrame method (1 of 3)

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


ApngImage.InsertFrame method (2 of 3)

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


ApngImage.InsertFrame method (3 of 3)

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