Exemplo n.º 1
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.º 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;
        }