资 源 简 介
最近在做一个图片查看器,由于使用一般的PctureBox,在性能和缩放控制上都无法满足预期的要求,因此所有组件的呈现均是通过重写控件的OnPaint事件来绘制。在查看gif图片时发现Graphics.DrawImage只呈现第一帧,无法满足预期要求,因此经过摸索寻找到了解决自绘gif的较好办法。-At a recent picture viewer, because of the use of general PctureBox, at performance and zoom control are unable to meet expectations, all components are a rewrite control through case OnPaint to draw. Gif picture in view Graphics.DrawImage found only show the first frame, unable to meet expected requirements, therefore, after groping to find a solution since the better way to draw gif.