www.pudn.com > OCR.zip > Form1.cs, change:2010-03-16,size:1133b


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
 
namespace OCR 
{ 
    public partial class Form1 : Form 
    {   
        public Form1() 
        { 
            InitializeComponent(); 
            pictureBox2.Visible =false ; 
        } 
 
        private void button1_Click(object sender, EventArgs e) 
 
        { 
            int visina; 
            int sirina; 
            float rotacija; 
            visina = pictureBox1.Width; 
            sirina = pictureBox1.Width; 
 
            if (textStepeni.Text=="" ) 
            { 
                textStepeni.Text="0"; 
 
            }; 
 
            
 
            rotateImage image = new rotateImage(); 
 
            
            rotacija= (float)Convert.ToDouble(textStepeni.Text); 
 
 
            pictureBox2.Visible = true; 
            pictureBox2.Image = image.RotateImage(pictureBox1.Image, rotacija); 
           
 
           
        } 
 
        private void pictureBox1_Click(object sender, EventArgs e) 
        { 
 
        } 
    } 
}