Exemplo n.º 1
0
        private void btnImagePrev_Click(object sender, EventArgs e)
        {
            if (SprReader == null)
            {
                return;
            }
            if ((SpriteNum - 1) < 0 || (SpriteNum - 1) >= SprReader.Sprite.Images.Length)
            {
                return;
            }

            SpriteNum--;
            AddStatus("set SpriteNum " + SpriteNum + "/" + SprReader.Sprite.Images.Length);
            if (SprReader.Sprite.Images[SpriteNum].Image == null)
            {
                SprReader.DrawImage(SpriteNum);
            }
            pictureBox1.Image = SprReader.Sprite.Images[SpriteNum].Image;
        }
Exemplo n.º 2
0
		private void btnSearch_Click( object sender, EventArgs e ) {
			OpenFileDialog Dlg = new OpenFileDialog();
			Dlg.Filter = "SPR File|*.spr|Image|*.*";
			if( Dlg.ShowDialog() != DialogResult.OK )
				return;

			SprReader = new SpriteRead( this, Dlg.FileName );
			if( SprReader.Sprite.Images[ 0 ].Image == null )
				SprReader.DrawImage( 0 );
			pictureBox1.Image = SprReader.Sprite.Images[ 0 ].Image;

		}
Exemplo n.º 3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            OpenFileDialog Dlg = new OpenFileDialog();

            Dlg.Filter = "SPR File|*.spr|Image|*.*";
            if (Dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            SprReader = new SpriteRead(this, Dlg.FileName);
            if (SprReader.Sprite.Images[0].Image == null)
            {
                SprReader.DrawImage(0);
            }
            pictureBox1.Image = SprReader.Sprite.Images[0].Image;
        }