I'm trying to draw a rubberband line on top of an image using RzLine (in Berlin.)


I'm trying to draw a rubberband line on top of an image using RzLine (in Berlin.)

Unfortunately, the TRzline's full extent flickers as shown below.

Any suggestions on how to avoid this with TRzline or another component?

Comments

  1. DoubleBuffered is almost certainly a bad idea. Extra overhead often for no gain and a loss of theme effects.

    Drawing a line without flickering is easy enough. Problem best solved by digging deeper and diagnosing the cause of flicker first. VCL often gets in the way it is true.

    ReplyDelete
  2. Looks like the background is being erased. If so there is a way to stop that, at least in windows. Look up "flickering erase background Delphi" on google.

    ReplyDelete
  3. David Heffernan yeah good point. Doublebuffered works shitty via Remote Desktop and it makes VCL themes even shittier than they already are, so only use doublebuffered if it's really needed.
    I doubt that this line drawing is important enough to warrant a lengthy VCL debug session, but only John can judge that.

    ReplyDelete

Post a Comment