Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 540 - TAntiAliasTool uses now GDI+, but draws wide horizontal lines
Summary: TAntiAliasTool uses now GDI+, but draws wide horizontal lines
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: hhttp://www.teechart.net/support/view...
Keywords:
Depends on: 491
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-20 09:02 EST by yeray alonso
Modified: 2014-03-17 12:44 EDT (History)
2 users (show)

See Also:
Chart Series: Line
Delphi / C++ Builder RAD IDE Version:


Attachments
Testing project (1.88 MB, application/octet-stream)
2014-01-20 09:02 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-01-20 09:02:25 EST
Created attachment 71 [details]
Testing project

When ID 491 was closed, the TAntiAliasTool was deprecated and it moved to use GDI+ internally.

However, TAntiAliasTool drew the horizontal lines better: having a Pen.Width=1, GDI+ (and thus the new TAntiAliasTool) needs two pixels wide to draw the line.

Discussed here:
http://www.teechart.net/support/viewtopic.php?f=3&t=14565

Related to:
http://bugs.teechart.net/show_bug.cgi?id=491
Comment 1 david berneda 2014-01-22 12:31:03 EST
The best (and only) solution we have here is to use and IFDEF to switch between the new antialias (using GDI+ canvas) and the old (using our old code).

The define is:  TEEANTIALIAS

(TeeAntialias.pas unit source code is required)

We could provide this unit source code with the binary version, if necessary.
Comment 2 Janne 2014-02-10 05:34:55 EST
Hi,

so how do I get it working with latest sources 131119 (drawing right not dual color)?


(In reply to david berneda from comment #1)
> The best (and only) solution we have here is to use and IFDEF to switch
> between the new antialias (using GDI+ canvas) and the old (using our old
> code).
> 
> The define is:  TEEANTIALIAS
> 
> (TeeAntialias.pas unit source code is required)
> 
> We could provide this unit source code with the binary version, if necessary.