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)
Parameter | Type | Description |
---|
index | Int32 | The index. |
Return Value
The newly created APNG frame.
Exceptions
exception | condition |
---|
ArgumentOutOfRangeException | index 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)
Parameter | Type | Description |
---|
index | Int32 | The index. |
frameImage | RasterImage | The frame image. |
Exceptions
exception | condition |
---|
ArgumentOutOfRangeException | index is less than 0. or index is greater than PageCount . |
ArgumentNullException | frameImage 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)
Parameter | Type | Description |
---|
index | Int32 | The index. |
frameImage | RasterImage | The frame image. |
frameTime | UInt32 | The frame duration, in milliseconds. |
Exceptions
exception | condition |
---|
ArgumentOutOfRangeException | index is less than 0. or index is greater than PageCount . |
ArgumentNullException | frameImage is null. |
See Also