วันศุกร์ที่ 20 กุมภาพันธ์ พ.ศ. 2552

Get Image from stream use local path.

have only one sample function here

        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.

ไม่มีความคิดเห็น: