有这么一个应用:在一个比较小的窗口显示一个比较大的图片,怎么自动弄出来一个滚动条阿?大家谁有思路?
谢谢!图片是显示在PictureBox中的

解决方案 »

  1.   

    AutoSize The PictureBox is sized equal to the size of the image that it contains.  
     CenterImage The image is displayed in the center if the PictureBox is larger than the image. If the image is larger than the PictureBox, the picture is placed in the center of the PictureBox and the outside edges are clipped.  
     Normal The image is placed in the upper-left corner of the PictureBox. The image is clipped if it is larger than the PictureBox it is contained in.  
     StretchImage The image within the PictureBox is stretched or shrunk to fit the size of the PictureBox.  
     Zoom The size of the image is increased or decreased maintaining the size ratio.  
    SizeMode 这些属性都吧能满足你的要求,因此你需要重写一个自己的控件 去实现你的功能
      

  2.   

    将一个PictureBox放在一个Panel控件中,PictureBox的大小设成与图象大小一样就行了
      

  3.   

    picturebox控件,acdsee控件,图片控件;
    用C#开发的图片控件,功能类似acdsee;
    支持各种图片的浏览,放大,缩小,平移等功能;
    源代码参考:http://shop.paipai.com/359073000
      

  4.   

    谢谢各位参与,最终我是按照cyy1981 的做法,自己去写OnPaint函数,然后去维护一个Point偏移来标识图片的位置。
    谢谢大家!