Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 27, 2006 12:48:16 AM(UTC)

wahm  
wahm

Groups: Registered
Posts: 3


i'm using medical suite Leadtools 13 VCL with delphi 7.0
, an i want to draw the image information on the client area of the
leadmain control, i tried many method like drawing directly by the
drawtextout method or by using canvas, also i tried to draw all text on
memDC the biblt it o the clientDC, also i tried to set doublebuffer property to true, ...

but all of this methods causes flickering when repainting the bitmap.

also the annotation causes flickering also in leadAnn control.

Is there any idea to draw a flicker less text on the control ?.

it is important for me as it causes annoyance to the users.


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, December 28, 2006 9:38:17 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

I opened our Annotations VCL Delphi 7 Demo that is shipped with LEADTOOLS 13, loaded and image and inserted a text annotation object on it.
I then changed the view mode to "Fit to window" and resized the window several times, and no flickering occurred.

The version I tested with is 13.0.0.129. If you have an older version of our DLLs, please download the latest LEADTOOLS 13 patches from our support site and test with them.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Saturday, January 6, 2007 10:03:44 PM(UTC)

wahm  
wahm

Groups: Registered
Posts: 3


I'm already using the same patch, but please try your sample again, by using the mouse to manipulate the zoom, or the brightness/contrast of the image, with autorepaint=false and use forcerepaint for changes to appear immediatly, you will find that the text is flickering.
 On the other hand is there any method to write on the ClientDC without flickering ?!
 
#4 Posted : Tuesday, January 9, 2007 9:58:15 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

If you place a static text control on the form and place it on top of the LEAD control, you can put text inside it that doesn't flicker when the LEAD control is repainted. The attached project shows this.

File Attachment(s):
TextOnImage.zip (2kb) downloaded 29 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.072 seconds.