PDA

View Full Version : گرفتن عكس



saed2006
یک شنبه 11 مهر 1389, 15:59 عصر
سلام
متدي ميخوام كه ادرس بگيره و يك شي image (عكسي كه در اين ادرس هست) را برگردونه
private Image GetImage(string p)
{

}

lord_viper
یک شنبه 11 مهر 1389, 17:00 عصر
این یه مثال ساده برای bmp هست


Bitmap bmp = new Bitmap("c:\sample.bmp");




string filePath = "image.jpg";
Image newImage = Image.FromFile(filePath);

rezamansori
یک شنبه 11 مهر 1389, 20:39 عصر
PictureBox1.Image=Image.FromFile(filepath);