InsertFrame
InsertFrame(int)
在指定索引处将新帧插入到自己的帧集合中。 将根据当前图像的大小创建一个新帧。
public ApngFrame InsertFrame(int index)
返回值
新创建的 APNG 帧。
例外
| 例外 | (健康)状况 |
|---|
| ArgumentOutOfRangeException | index小于 0. 或 index大于PageCount . |
也可以看看
InsertFrame(int, RasterImage)
在指定索引处将新帧插入到自己的帧集合中。 新帧的内容将从指定的图像中填充。
public void InsertFrame(int index, RasterImage frameImage)
| 范围 | 类型 | 描述 |
|---|
| index | Int32 | 指数。 |
| frameImage | RasterImage | 帧图像。 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentOutOfRangeException | index小于 0. 或 index大于PageCount . |
| ArgumentNullException | 帧图像为空。 |
也可以看看
InsertFrame(int, RasterImage, uint)
在指定索引处将新帧插入到自己的帧集合中。 新帧的内容将从指定的图像中填充。
public void InsertFrame(int index, RasterImage frameImage, uint frameTime)
| 范围 | 类型 | 描述 |
|---|
| index | Int32 | 指数。 |
| frameImage | RasterImage | 帧图像。 |
| frameTime | UInt32 | 帧持续时间,以毫秒为单位。 |
例外
| 例外 | (健康)状况 |
|---|
| ArgumentOutOfRangeException | index小于 0. 或 index大于PageCount . |
| ArgumentNullException | 帧图像为空。 |
也可以看看