home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 July
/
CMCD0704.ISO
/
Software
/
Freeware
/
Grafica
/
Animation
/
AnimationStudioSetup.msi
/
_3CA7015D32004C8B8FAB422593C47FB8
/
_37747A52F2C76B3B39EFD0AEFBF745B3
< prev
next >
Wrap
Text File
|
2004-05-03
|
16KB
|
451 lines
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Example
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private AnimationStudio.SpritePanel spritePanel1;
private AnimationStudio.Sprite sprite1;
private AnimationStudio.KeyFrame keyFrame1;
private AnimationStudio.KeyFrame keyFrame2;
private AnimationStudio.KeyFrame keyFrame3;
private AnimationStudio.Sprite sprite2;
private AnimationStudio.KeyFrame keyFrame4;
private AnimationStudio.KeyFrame keyFrame5;
private AnimationStudio.KeyFrame keyFrame6;
private AnimationStudio.KeyFrame keyFrame7;
private AnimationStudio.KeyFrame keyFrame8;
private AnimationStudio.Sprite sprite3;
private AnimationStudio.KeyFrame keyFrame9;
private AnimationStudio.KeyFrame keyFrame10;
private AnimationStudio.KeyFrame keyFrame11;
private AnimationStudio.KeyFrame keyFrame12;
private AnimationStudio.KeyFrame keyFrame13;
private AnimationStudio.KeyFrame keyFrame14;
private AnimationStudio.KeyFrame keyFrame15;
private System.Windows.Forms.Label label1;
private AnimationStudio.Sprite sprite4;
private AnimationStudio.KeyFrame keyFrame16;
private AnimationStudio.KeyFrame keyFrame17;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
AnimationStudio.Sound sound1 = new AnimationStudio.Sound();
AnimationStudio.Sound sound2 = new AnimationStudio.Sound();
AnimationStudio.Sound sound3 = new AnimationStudio.Sound();
AnimationStudio.Sound sound4 = new AnimationStudio.Sound();
this.spritePanel1 = new AnimationStudio.SpritePanel();
this.label1 = new System.Windows.Forms.Label();
this.sprite3 = new AnimationStudio.Sprite(this.spritePanel1);
this.keyFrame9 = new AnimationStudio.KeyFrame();
this.keyFrame10 = new AnimationStudio.KeyFrame();
this.keyFrame11 = new AnimationStudio.KeyFrame();
this.keyFrame12 = new AnimationStudio.KeyFrame();
this.keyFrame13 = new AnimationStudio.KeyFrame();
this.keyFrame14 = new AnimationStudio.KeyFrame();
this.keyFrame15 = new AnimationStudio.KeyFrame();
this.sprite1 = new AnimationStudio.Sprite(this.spritePanel1);
this.keyFrame1 = new AnimationStudio.KeyFrame();
this.keyFrame2 = new AnimationStudio.KeyFrame();
this.keyFrame3 = new AnimationStudio.KeyFrame();
this.sprite2 = new AnimationStudio.Sprite(this.spritePanel1);
this.keyFrame4 = new AnimationStudio.KeyFrame();
this.keyFrame5 = new AnimationStudio.KeyFrame();
this.keyFrame6 = new AnimationStudio.KeyFrame();
this.keyFrame7 = new AnimationStudio.KeyFrame();
this.keyFrame8 = new AnimationStudio.KeyFrame();
this.sprite4 = new AnimationStudio.Sprite(this.spritePanel1);
this.keyFrame17 = new AnimationStudio.KeyFrame();
this.keyFrame16 = new AnimationStudio.KeyFrame();
this.spritePanel1.SuspendLayout();
this.SuspendLayout();
//
// spritePanel1
//
this.spritePanel1.BackColor = System.Drawing.Color.Black;
this.spritePanel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.spritePanel1.Controls.Add(this.label1);
this.spritePanel1.Location = new System.Drawing.Point(8, 8);
this.spritePanel1.Name = "spritePanel1";
this.spritePanel1.Size = new System.Drawing.Size(592, 504);
this.spritePanel1.Sprites.AddRange(new AnimationStudio.Sprite[] {
this.sprite3,
this.sprite1,
this.sprite2,
this.sprite4});
this.spritePanel1.TabIndex = 0;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Verdana", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label1.Location = new System.Drawing.Point(213, 112);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(162, 40);
this.label1.TabIndex = 0;
this.label1.Text = "Bill Gates";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// sprite3
//
this.sprite3.BorderColor = System.Drawing.Color.WhiteSmoke;
this.sprite3.BorderWidth = 2F;
this.sprite3.DrawBorder = false;
this.sprite3.DrawPath = false;
this.sprite3.DrawText = false;
this.sprite3.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold);
this.sprite3.Image = ((System.Drawing.Bitmap)(resources.GetObject("sprite3.Image")));
this.sprite3.PathClosed = true;
this.sprite3.Position = new System.Drawing.Point(128, 167);
this.sprite3.Rotation = 265.7143F;
this.sprite3.Size = new System.Drawing.Size(162, 162);
sound1.SoundFile = "";
this.sprite3.Sound = sound1;
this.sprite3.Text = "Sprite";
this.sprite3.TextColor = System.Drawing.Color.DarkRed;
this.sprite3.Timeline.AddRange(new AnimationStudio.KeyFrame[] {
this.keyFrame9,
this.keyFrame10,
this.keyFrame11,
this.keyFrame12,
this.keyFrame13,
this.keyFrame14,
this.keyFrame15});
this.sprite3.TransparentColor = System.Drawing.Color.Black;
this.sprite3.XScale = 3F;
this.sprite3.YScale = 3F;
//
// keyFrame9
//
this.keyFrame9.Duration = 50;
this.keyFrame9.Opacity = 1F;
this.keyFrame9.Position = new System.Drawing.Point(193, 474);
this.keyFrame9.Rotation = 0F;
this.keyFrame9.Visible = true;
this.keyFrame9.XScale = 1;
this.keyFrame9.YScale = 1;
this.keyFrame9.ZOrder = 0;
//
// keyFrame10
//
this.keyFrame10.Duration = 70;
this.keyFrame10.Opacity = 1F;
this.keyFrame10.Position = new System.Drawing.Point(69, 112);
this.keyFrame10.Rotation = 0F;
this.keyFrame10.Visible = true;
this.keyFrame10.XScale = 1;
this.keyFrame10.YScale = 1;
this.keyFrame10.ZOrder = 0;
//
// keyFrame11
//
this.keyFrame11.Duration = 50;
this.keyFrame11.Opacity = 1F;
this.keyFrame11.Position = new System.Drawing.Point(379, 24);
this.keyFrame11.Rotation = 0F;
this.keyFrame11.Visible = true;
this.keyFrame11.XScale = 1;
this.keyFrame11.YScale = 1;
this.keyFrame11.ZOrder = 0;
//
// keyFrame12
//
this.keyFrame12.Duration = 70;
this.keyFrame12.Opacity = 1F;
this.keyFrame12.Position = new System.Drawing.Point(590, 159);
this.keyFrame12.Rotation = 0F;
this.keyFrame12.Visible = true;
this.keyFrame12.XScale = 2;
this.keyFrame12.YScale = 2;
this.keyFrame12.ZOrder = 0;
//
// keyFrame13
//
this.keyFrame13.Duration = 32;
this.keyFrame13.Opacity = 1F;
this.keyFrame13.Position = new System.Drawing.Point(43, 263);
this.keyFrame13.Rotation = 0F;
this.keyFrame13.Visible = true;
this.keyFrame13.XScale = 1;
this.keyFrame13.YScale = 1;
this.keyFrame13.ZOrder = 0;
//
// keyFrame14
//
this.keyFrame14.Duration = 70;
this.keyFrame14.Opacity = 1F;
this.keyFrame14.Position = new System.Drawing.Point(131, 138);
this.keyFrame14.Rotation = 1000F;
this.keyFrame14.Visible = true;
this.keyFrame14.XScale = 3;
this.keyFrame14.YScale = 3;
this.keyFrame14.ZOrder = 0;
//
// keyFrame15
//
this.keyFrame15.Duration = 32;
this.keyFrame15.Opacity = 1F;
this.keyFrame15.Position = new System.Drawing.Point(549, 93);
this.keyFrame15.Rotation = 0F;
this.keyFrame15.Visible = true;
this.keyFrame15.XScale = 3;
this.keyFrame15.YScale = 3;
this.keyFrame15.ZOrder = 0;
//
// sprite1
//
this.sprite1.BorderColor = System.Drawing.Color.WhiteSmoke;
this.sprite1.BorderWidth = 2F;
this.sprite1.DrawBorder = false;
this.sprite1.DrawPath = false;
this.sprite1.DrawText = false;
this.sprite1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold);
this.sprite1.Image = ((System.Drawing.Bitmap)(resources.GetObject("sprite1.Image")));
this.sprite1.Opacity = 0.06999999F;
this.sprite1.Position = new System.Drawing.Point(541, 746);
this.sprite1.Rotation = -309.6F;
this.sprite1.Size = new System.Drawing.Size(305, 250);
sound2.SoundFile = "";
this.sprite1.Sound = sound2;
this.sprite1.Text = "Sprite";
this.sprite1.TextColor = System.Drawing.Color.DarkRed;
this.sprite1.Timeline.AddRange(new AnimationStudio.KeyFrame[] {
this.keyFrame1,
this.keyFrame2,
this.keyFrame3});
this.sprite1.TransparentColor = System.Drawing.Color.Transparent;
this.sprite1.XScale = 1.14F;
this.sprite1.YScale = 0.944F;
this.sprite1.ZOrder = 1;
//
// keyFrame1
//
this.keyFrame1.Duration = 200;
this.keyFrame1.Opacity = 1F;
this.keyFrame1.Position = new System.Drawing.Point(-200, 35);
this.keyFrame1.Rotation = 0F;
this.keyFrame1.Visible = true;
this.keyFrame1.XScale = 2;
this.keyFrame1.YScale = 2;
this.keyFrame1.ZOrder = 1;
//
// keyFrame2
//
this.keyFrame2.Duration = 200;
this.keyFrame2.Opacity = 1F;
this.keyFrame2.Position = new System.Drawing.Point(566, 15);
this.keyFrame2.Rotation = 360F;
this.keyFrame2.Visible = true;
this.keyFrame2.XScale = 3;
this.keyFrame2.YScale = 0.2;
this.keyFrame2.ZOrder = 1;
//
// keyFrame3
//
this.keyFrame3.Duration = 200;
this.keyFrame3.Opacity = 0F;
this.keyFrame3.Position = new System.Drawing.Point(540, 800);
this.keyFrame3.Rotation = -360F;
this.keyFrame3.Visible = true;
this.keyFrame3.XScale = 1;
this.keyFrame3.YScale = 1;
this.keyFrame3.ZOrder = 1;
//
// sprite2
//
this.sprite2.BorderColor = System.Drawing.Color.WhiteSmoke;
this.sprite2.BorderWidth = 2F;
this.sprite2.DrawBorder = false;
this.sprite2.DrawPath = false;
this.sprite2.DrawText = false;
this.sprite2.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold);
this.sprite2.Image = ((System.Drawing.Bitmap)(resources.GetObject("sprite2.Image")));
this.sprite2.PathClosed = true;
this.sprite2.Position = new System.Drawing.Point(513, 168);
this.sprite2.Rotation = 67.5F;
this.sprite2.Size = new System.Drawing.Size(66, 66);
sound3.SoundFile = "";
this.sprite2.Sound = sound3;
this.sprite2.Text = "Sprite";
this.sprite2.TextColor = System.Drawing.Color.DarkRed;
this.sprite2.Timeline.AddRange(new AnimationStudio.KeyFrame[] {
this.keyFrame4,
this.keyFrame5,
this.keyFrame6,
this.keyFrame7,
this.keyFrame8});
this.sprite2.TransparentColor = System.Drawing.Color.Black;
this.sprite2.XScale = 1F;
this.sprite2.YScale = 1F;
this.sprite2.ZOrder = 2;
//
// keyFrame4
//
this.keyFrame4.Duration = 32;
this.keyFrame4.Opacity = 1F;
this.keyFrame4.Position = new System.Drawing.Point(521, 186);
this.keyFrame4.Rotation = 0F;
this.keyFrame4.Visible = true;
this.keyFrame4.XScale = 1;
this.keyFrame4.YScale = 1;
this.keyFrame4.ZOrder = 2;
//
// keyFrame5
//
this.keyFrame5.Duration = 32;
this.keyFrame5.Opacity = 1F;
this.keyFrame5.Position = new System.Drawing.Point(589, 328);
this.keyFrame5.Rotation = 0F;
this.keyFrame5.Visible = true;
this.keyFrame5.XScale = 4;
this.keyFrame5.YScale = 4;
this.keyFrame5.ZOrder = 2;
//
// keyFrame6
//
this.keyFrame6.Duration = 32;
this.keyFrame6.Opacity = 1F;
this.keyFrame6.Position = new System.Drawing.Point(19, 338);
this.keyFrame6.Rotation = 0F;
this.keyFrame6.Visible = true;
this.keyFrame6.XScale = 1;
this.keyFrame6.YScale = 1;
this.keyFrame6.ZOrder = 2;
//
// keyFrame7
//
this.keyFrame7.Duration = 32;
this.keyFrame7.Opacity = 1F;
this.keyFrame7.Position = new System.Drawing.Point(136, 38);
this.keyFrame7.Rotation = 0F;
this.keyFrame7.Visible = true;
this.keyFrame7.XScale = 0.2;
this.keyFrame7.YScale = 0.2;
this.keyFrame7.ZOrder = 2;
//
// keyFrame8
//
this.keyFrame8.Duration = 32;
this.keyFrame8.Opacity = 1F;
this.keyFrame8.Position = new System.Drawing.Point(470, 64);
this.keyFrame8.Rotation = 720F;
this.keyFrame8.Visible = true;
this.keyFrame8.XScale = 1;
this.keyFrame8.YScale = 1;
this.keyFrame8.ZOrder = 2;
//
// sprite4
//
this.sprite4.BorderColor = System.Drawing.Color.WhiteSmoke;
this.sprite4.BorderWidth = 2F;
this.sprite4.DrawBorder = false;
this.sprite4.DrawPath = false;
this.sprite4.DrawText = true;
this.sprite4.Font = new System.Drawing.Font("Arial Black", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.sprite4.Image = ((System.Drawing.Bitmap)(resources.GetObject("sprite4.Image")));
this.sprite4.Position = new System.Drawing.Point(-819, 450);
this.sprite4.Size = new System.Drawing.Size(1562, 51);
sound4.SoundFile = "";
this.sprite4.Sound = sound4;
this.sprite4.Text = "Done with Animation Studio in the Visual Studio Designer, without any programming" +
"!";
this.sprite4.TextColor = System.Drawing.Color.LightSkyBlue;
this.sprite4.Timeline.AddRange(new AnimationStudio.KeyFrame[] {
this.keyFrame17,
this.keyFrame16});
this.sprite4.TransparentColor = System.Drawing.Color.Black;
this.sprite4.XScale = 1F;
this.sprite4.YScale = 1F;
this.sprite4.ZOrder = 3;
//
// keyFrame17
//
this.keyFrame17.Duration = 400;
this.keyFrame17.Opacity = 1F;
this.keyFrame17.Position = new System.Drawing.Point(1400, 450);
this.keyFrame17.Rotation = 0F;
this.keyFrame17.Visible = true;
this.keyFrame17.XScale = 1;
this.keyFrame17.YScale = 1;
this.keyFrame17.ZOrder = 3;
//
// keyFrame16
//
this.keyFrame16.Duration = 32;
this.keyFrame16.Opacity = 1F;
this.keyFrame16.Position = new System.Drawing.Point(-900, 450);
this.keyFrame16.Rotation = 0F;
this.keyFrame16.Visible = true;
this.keyFrame16.XScale = 1;
this.keyFrame16.YScale = 1;
this.keyFrame16.ZOrder = 3;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(608, 518);
this.Controls.Add(this.spritePanel1);
this.Name = "Form1";
this.Text = "Form1";
this.spritePanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}