コード例 #1
0
ファイル: Form1.cs プロジェクト: swarnim321/ms
        /*Function for generate button to take the string length from textbox and
         * call the  GetVerifierString and GetImage functionality
         * and display the image in the picture*/
        private void generate_button_Click(object sender, EventArgs e)
        {
            ServiceReference3.ServiceClient myclient = new ServiceReference3.ServiceClient();
            string image_input = textBox6.Text;
            string result      = myclient.GetVerifierString(image_input);
            Stream stream_data = myclient.GetImage(result);
            var    myImage     = Image.FromStream(stream_data);

            pictureBox1.Image = myImage;
            image_val         = result;
        }