using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Drawing; 
using System.IO; namespace SetPixel函数用法 

    class Program 
    { 
        static void Main(string[] args) 
        { 
            Color 试验用 = Color.Blue; 
            Bitmap bmp = new Bitmap(@"C:\5.BMP"); 
            for (int 像素x = 0; 像素x < bmp.Width;像素x=像素x+1) 
                for (int 像素y = 0; 像素y < bmp.Height; 像素y = 像素y + 1) 
                { 
                    bmp.SetPixel(像素x, 像素y, 试验用); 
                    bmp.Save(@"c:\5.bmp", ImageFormat.Bmp); 
                } 
        } 
    } 

错误提示是:当前上下文中不存在名称"ImageFormat" 这个函数(还是属性?)的参数应该怎样填呢? 这个bmp.Save是应该放在for内还是for外呢?