用Display()进行显示。但是,图片没有缩小,只能显示的只是一小部分.在控件区域旁边有滚动条,能滚动观看其它部分,希望能够将图片缩小到控件区域里。不用滚动看.谢谢了!

解决方案 »

  1.   

    set stretch mode to 2(auto)
      

  2.   

    请问怎么设置这个strech mode 我在属性对话框里看了一下,没有这个属性,在类里好象也没有这样的函数?谢谢蒋晟,祝早日康复!
      

  3.   

    Scales the image relative to the image window.Applies ToImage Edit controlSyntaxobject.FitTo Option[,Repaint]ArgumentsParameter Data Type Setting Description
    Option Integer
    (enumerated) 0
    1
    2
    3 Best fit -- Fits the image to the size of the window
    Fit to width -- Fits the image to the width of the window
    Fit to height -- Fits the image to the height of the window
    Inch to inch -- Maintains the relative size of the original image regardless of the resolution of the image
    Repaint Boolean True
    False Image is repainted (default)
    Image is not repainted
    Return ValueNoneResThe Inch to inch setting calculates the size of the image dependent upon the dots per inch reported by the display driver.
    When invoked, the FitTo method updates the Zoom property with the new zoom factor.
    The FitTo method can be invoked before or after an image is displayed.  If an image is displayed when the method is invoked, and the Repaint parameter is set to True, the image is redisplayed using the Option setting specified.See AlsoDisplay
    Zoom property
    ZoomToSelection methodCopyright © Kodak, 1995-1997
    %windir%\help\IMGOCXD.HLP