你指的位置是url,还是在页面的位置,问题的说清楚啊

解决方案 »

  1.   

    好像在graphics类中有方法能得到指定位置的图像信息
      

  2.   

    To:liduke(天下有雪)偶已经使用上这个类了,但是偶还没有找到哪个方法可以产生新文件(关键是产生指定象素位置的图片)
      

  3.   

    产生新文件只能使用Image继承下来的类,Bitmap比较好用些吧,首先根据需要的尺寸创建一个Bitmap,使用CreateGrphics来获得它的Graphics, 再获得该Graphics的Hdc(同样也要获得原Graphics的Hdc),再调用API函数BitBlt从原Graphics里把指定区域内的内容复制过来,就OK了。
      

  4.   

    Image bmp = new Bitmap(x, y);
    Graphics g = Graphics.FromImage(bmp);
    g.DrawImage(srcImage, x, y); // srcImage is the Image of WebPage
    bmp.Save(fileName);