D
Davis
Hi, I have an app which displays a sequence of png images, these
are copied into PictureBox as shown below. This sequence is done
in its own thread, its just that the single line
'picImage.Image = New Bitmap(arrimg(cnt) & ".png")'
is killing performance, also generating InvalidCastException. How can
i improve this? Basically it cycles through an array of png files under
timer control.
If Not (Me.picImage.Image Is Nothing) Then
Me.picImage.Image.Dispose()
End If
picImage.Image = New Bitmap(arrimg(cnt) & ".png")
are copied into PictureBox as shown below. This sequence is done
in its own thread, its just that the single line
'picImage.Image = New Bitmap(arrimg(cnt) & ".png")'
is killing performance, also generating InvalidCastException. How can
i improve this? Basically it cycles through an array of png files under
timer control.
If Not (Me.picImage.Image Is Nothing) Then
Me.picImage.Image.Dispose()
End If
picImage.Image = New Bitmap(arrimg(cnt) & ".png")