当timer1 事件中   作image1.Height:=image1.Height-1;图片闪烁,如何缩小时不让他闪烁!!!!!!!!

解决方案 »

  1.   

    Image可以更改Image.Proportional:=False这样一来可以改变TControl.ControlStyleControlStyle := ControlStyle + [csOpaque]
      

  2.   

    使用双缓冲啊,或者directx、opengl
      

  3.   

    在窗口的Create 事件中加入:
      Self.DoubleBuffered := True;
      

  4.   

    Self.DoubleBuffered := True;/ScrollBox.DoubleBuffered := True;
    //Self or parent is Image's parent;
      

  5.   

    要想真的不闪,那就用DirectX中的DirectDraw
    还有一个好方法就是用DelphiX组件,不难的
      

  6.   

    哈,我也遇到过类似问题。最后解决了:
    1.确定你的Canvas控件的父控件,即如果你的Canvas控件是Image1,它在Panel1上,他的
    父控件为Panel1,如果在Scrollbox1上,他的父控件为Scrollbox1;
    2.设置 父控件.doublebuffered:=true;Good luck for you!
      

  7.   

    不可能会没得闪硕感,paintbox也一样,把timer的interval属性调小试试。