.net类库中没有相应的类,能创建的都是32位、64位之类的。唯一一种1位却还是带索引的,不能直接创建。大虾指导一下,应该怎么处理啊。

解决方案 »

  1.   

    看看http://www.lepoo.net好了!!!
      

  2.   

    Bitmap image = new Bitmap(imgWidth, imgHeight); 
    Graphics g = Graphics.FromImage(image); 
    g.Clear(Color.White); 
    Font font = new Font("黑体", 30);
    g.DrawString(g, new Point(0, 0), imgText, font, new SolidBrush(Color.Blue));
    g.Draw...
      

  3.   

    Bitmap image = new Bitmap(imgWidth, imgHeight); 
    Graphics g = Graphics.FromImage(image); 
    g.Clear(Color.White); 
    Font font = new Font("黑体", 30);
    g.DrawString(g, new Point(0, 0), imgText, font, new SolidBrush(Color.Blue));
    g.Draw...
      
     楼上这种方法只能创建标准的位图啊,这个好像是32位的啊。我是为了缩小文件体积,希望建立每个像素1bit的位图,有办法么?当然,得是别的软件能识别的啊。
      

  4.   

    参考http://www.bobpowell.net/onebit.htm