private Image GetImageFromLocal( string localPath )
{
using (FileStream fs = new FileStream( localPath, FileMode.Open, FileAccess.Read ))
{
Image img = Image.FromStream( fs );
return img;
}
}
Don't sure about performance from local or url and if found bad data.
I will try test later.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น