Hi
I am reworking an old application that has 5 charts in a gridpanel component. I hook each of the charts to a GDI+ component and set active true and anti-aliasing off. When working on the design in the IDE I noticed that anti-aliasing was now on in the charts, even when it wasn't set.
I then set each of the GDI+ components to active but it made no difference, so I deleted all the GDI+ components but the anti-aliasing is still active without any GDI+ component both in the IDE and at run-time .
I haven't had time to look at the new bug tracker yet, but I wonder if this problem has been logged?
Bruce.
GDI+ Just won't die
Re: GDI+ Just won't die
Hi Bruce,
The default canvas is now GDIPlus but you can go back to the regular GDI Canvas anytime:
http://www.teechart.net/support/viewtop ... 454#p62454
The default canvas is now GDIPlus but you can go back to the regular GDI Canvas anytime:
http://www.teechart.net/support/viewtop ... 454#p62454
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: GDI+ Just won't die
Hi Yeray
Thanks for the advice.
GDI is a bit confusing and there's very little help or guidance in the documentation either.
Do I understand it that GDI is always enabled?
Bruce.
Thanks for the advice.
GDI is a bit confusing and there's very little help or guidance in the documentation either.
Do I understand it that GDI is always enabled?
Bruce.
Re: GDI+ Just won't die
Hi Bruce,
TeeChart 2013.09 moved the default Canvas from GDI to GDIPlus (see the What's New page). This is for new charts being created while the charts already present in old forms should keep their choice.
However, you can still:
TeeChart VCL supports three Canvas: GDI, GDIPlus and OpenGLMetman wrote:GDI is a bit confusing and there's very little help or guidance in the documentation either.
Do I understand it that GDI is always enabled?
TeeChart 2013.09 moved the default Canvas from GDI to GDIPlus (see the What's New page). This is for new charts being created while the charts already present in old forms should keep their choice.
However, you can still:
- Change the current chart's canvas:
- Through the editor at the "Chart/3D/Render" tab:
- By code
To set GDI by code:To set GDIPlus by code:Code: Select all
uses TeCanvas; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Canvas:=TTeeCanvas3D.Create; end;
Code: Select all
uses TeeGDIPlus; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Canvas:=TGDIPlusCanvas.Create; end;
- Change the option for the next new charts to be created at the "New Chart" tab in the "Options..." dialog opened from the contextual menu at design time::
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: GDI+ Just won't die
Hi Yeray
Thanks that's a lot clearer.
I think it would be preferable to set GDI in code and stop cluttering the design view with TTeeGDIPlus components like you suggest, but just how do I set Antialias=false and AntiAliasText=gpfClearType in code?
Bruce.
Thanks that's a lot clearer.
I think it would be preferable to set GDI in code and stop cluttering the design view with TTeeGDIPlus components like you suggest, but just how do I set Antialias=false and AntiAliasText=gpfClearType in code?
Bruce.
Re: GDI+ Just won't die
Hello Bruce,
Find attached a project that shows you how to change both the Canvas and the font AntiAlias by code: Also, here you'll find an example showing the alternatives supported for the AntiAlias in the canvas.
Find attached a project that shows you how to change both the Canvas and the font AntiAlias by code: Also, here you'll find an example showing the alternatives supported for the AntiAlias in the canvas.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: GDI+ Just won't die
What is the snippet of code to use the GDI renderer for C++ ActiveX component? (instead of GDIPlus).
i.e. I want to set Chart canvas to GDI instead of the default which is GDIPlus in TChart2016 ActiveX
Regards
--nbp
i.e. I want to set Chart canvas to GDI instead of the default which is GDIPlus in TChart2016 ActiveX
Regards
--nbp
Re: GDI+ Just won't die
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |