hi, everybody.
i tried to load image and create picture box with 152*152 size.
but loading image is larger than this box size.
so i need to adjust loaded image and show it in picture box.
here are some codes.
...........Code:DialogResult dr = ofd_Finger.ShowDialog(); if (dr == DialogResult.OK) { Image loadimg = Image.FromFile(ofd_Finger.FileName); //pb_UserPhoto.Height = loadimg.Height; //pb_UserPhoto.Width = loadimg.Width; pb_UserPhoto.Image = loadimg; }
can u help me?
best wishes.



LinkBack URL
About LinkBacks


