你的意思是不是把扫描的图片进行分割呢!那你的图片文件一定是同一中发、格式的!我建议你
不涉及到 图像识别,只是把扫描后的图象放在一个图片控件,通过SHAPE的区间进行文件的切割!
我只做过对扫描后的图片做处理!

解决方案 »

  1.   

    楼上:playboy88,能告诉我怎样用SHAPE的区间进行文件的切割!,先第一步,按最简单的,指定图片区间,将图片分成几部分.
    谢谢!!!!
      

  2.   

    纺织2个图象控件
    private WindowsExtendedControls.ShapeEx shapeExSelector=new WindowsExtendedControls.ShapeEx();//SHAPE加载
    shapeExSelector.Size = new System.Drawing.Size(100, 130);
    shapeExSelector.BackColor=Color.Transparent;
    shapeExSelector.ReSizeble=true;
    shapeExSelector.BorderColor=Color.Blue;
    shapeExSelector.Location=new Point(0,0);
    this.pictureBox1.Controls.Add(shapeExSelector);//大小
    Graphics g=null;
    Bitmap bitmap=null;
    if (this.pictureBox1.Image!=null)
    {
    Rectangle sourceRec=new Rectangle();
    sourceRec.X=Convert.ToInt32(this.shapeExSelector.SelectRectangle.X);
    sourceRec.Y=Convert.ToInt32(this.shapeExSelector.SelectRectangle.Y);
    sourceRec.Width =Convert.ToInt32(this.shapeExSelector.SelectRectangle.Width);
    sourceRec.Height=Convert.ToInt32(this.shapeExSelector.SelectRectangle.Height);
    bitmap=new Bitmap(sourceRec.Width,sourceRec.Height);
    g = Graphics.FromImage(bitmap);
                  g.DrawImage(this.pictureBox1.Image,0,0,sourceRec,GraphicsUnit.Pixel);
    this.pictureBox2.Image=Image.FromHbitmap(bitmap.GetHbitmap());
         } this.pictureBox2.Image.Save(@"c:\fc.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);