Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

image resizing

$
0
0

suppose i hv window application , in which i asked user to upload a picture , when he upload picture then i want to add another feature to resize that picture so only that part of picture is shown. for this purpose there should be a rectangle as in facebook please someone help me
i have written code for uploading picture

 private void oPENToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string name = "";
            openFileDialog1.Filter = "Image Files (JPG,JPEG,PNG,GIF)|*.JPG;*.PNG;*.GIF;*.JPEG";

            openFileDialog1.Title = "Open a Image file";
            openFileDialog1.FilterIndex = 1;

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                name = openFileDialog1.FileName;
                ilabel.Text = name;

            }
        }

                

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>