K
KevinEvans
Guest
I need some help...
I cant figure out what i am doing wrong.
I get the exception [Index was outside the bounds of the array.] if i use frame[1]... There should be a frame[1] though...
any ideas?
but, in VB.Net, it works fine :/
I cant figure out what i am doing wrong.
I get the exception [Index was outside the bounds of the array.] if i use frame[1]... There should be a frame[1] though...
any ideas?
Code:
TotalValue = Animations.GetAnimation(400, 0, RotateValue, 0, true).Length;
Frame[] frames = Animations.GetAnimation(400, 1, RotateValue, 0, true);
//this.Text = AnimateFrame.ToString() + "/" + TotalValue.ToString();
this.pictureBox1.Image =[B][U] frames[0].Bitmap [/U][/B];
but, in VB.Net, it works fine :/
Code:
Dim img() As Frame
img = Animations.GetAnimation(Body, 0, RotateValue, 0, True)
TotalValue = Animations.GetAnimation(Body, 0, RotateValue, 0, True).Length()
Me.PictureBox1.Image = img(Animate).Bitmap