I have a question for writing a program using C#. It needs to animate a series o
ID: 3886176 • Letter: I
Question
I have a question for writing a program using C#. It needs to animate a series of cells (images)
Here are 4 images I saved from a gif but in a jpeg format:
http://tinypic.com/view.php?pic=2yw6139&s=9#.Wb9Xd9OGNE4
http://tinypic.com/view.php?pic=120p37o&s=9#.Wb9XoNOGNE4
http://tinypic.com/view.php?pic=iei2qt&s=9
http://tinypic.com/view.php?pic=n5635u&s=9#.Wb9X-dOGNE4
From what I'm understanding, it needs to be very simple program that uses PictureBox, For loop and BackgroundWorker. These are just a few elements that I learned but I cannot put everything together. Again, it needs to be a simple program so as long as it does what it is supposed to, that would be great! Full instructions are below:
Create 4 to 7 images with your favorite image editor. Place the images in the same folder as the .sln file. Create an array of Images in your project. Load all of the images from the disk into your array. Use the Timer control to animate the images using a PictureBox control. Use the GUI format you see below (click on the link). You must have a Start, Stop, Faster and Slower button. These must control the action of the animation. You must be creative and your animation must show a smooth transition from cell to cell.
Link to how the program should look like: http://tinypic.com/view.php?pic=2dtofnl&s=9#.Wb9bZsalRE4
Your help will be appreciated! Thanks
Explanation / Answer
void uploadTinyPic(string imagetags, string filename){
foxtrot.xray.WebRobot wrobot = new foxtrot.xray.WebRobot();
foxtrot.xray.Form wform;
foxtrot.xray.Input wtags;
foxtrot.xray.Input wimg;
foxtrot.xray.Input wurl;
wrobot.Base = "http://tinypic.com/";
wrobot.LoadPage("/");
wform = wrobot.Forms[0];
wtags = wform.GetFieldByName("the_tag");
wimg = wform.GetFieldByName("the_file");
wtags.InputValue = imagetags;
wimg.InputValue = filename;
wrobot.SubmitForm(wform);
wform = wrobot.Forms[0];
wtags = wform.GetFieldByName("mytag");
wimg = wform.GetFieldByName("myimg");
wurl = wform.GetFieldByName("myurl");
System.Windows.Forms.MessageBox.Show_
("Image uploaded successfully! " +
"HTML link: " + (string)wtags.InputValue + " " +
"[IMG] tag: " + (string)wimg.InputValue + " " +
"Image URL: " + (string)wurl.InputValue);
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.