1.fix 修复gif绘制直接到第几帧方法,判断参数传入错误,导致无法绘制的问题
Signed-off-by: zhoulisheng1 <zhoulisheng1@huawei.com>
This commit is contained in:
parent
48b4844ed7
commit
4814b339e1
|
@ -588,7 +588,7 @@ export struct ImageKnifeComponent {
|
|||
* 绘制直接到第几帧方法,由于gif非第一帧数据可能是不全的,这里采用逐帧渲染的方式来绘制保证图像的完整性
|
||||
*/
|
||||
private drawSeekToFrame(frames: GIFFrame[], context: CanvasRenderingContext2D, compWidth: number, compHeight: number) {
|
||||
for (let i = 0; i < this.imageKnifeOption.gif; i++) {
|
||||
for (let i = 0; i < this.imageKnifeOption.gif.seekTo; i++) {
|
||||
this.drawFrame(frames, i, context, compWidth, compHeight);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue