GDI+, sub charts and blurry lines

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Richard
Newbie
Newbie
Posts: 11
Joined: Tue Feb 12, 2013 12:00 am

GDI+, sub charts and blurry lines

Post by Richard » Tue Jul 09, 2013 1:50 pm

when I create sub chart they always use the ugly gdi+ canvas, with the anti alias making the lines fat and blurry. Can I turn off the anti alias, or reset the sub chart to the gdi?

The axis line go from a clear black single pixel wide line to about 3 pixel wide grey blur.

I have set the option for new charts to be GDI - but it does not seem to effect the sub charts

Thanks for any help you can give

Richard

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDI+, sub charts and blurry lines

Post by Yeray » Wed Jul 10, 2013 2:01 pm

Hi Richard,

That's strange. By default, with GDI+ selected (as per default) as "Render" option at the "New Chart" tab in the "Options..." dialog opened from the contextual menu at design time:
GDI+Selected.png
GDI+Selected.png (48.57 KiB) Viewed 7389 times
I get GDI+ Charts, both at the parent chart and at the subchart:
GDI+.png
GDI+.png (40.45 KiB) Viewed 6996 times
However, if I open again the options dialog and select GDI as "Render" option at the "New Chart" tab, still at design time:
GDISelected.png
GDISelected.png (48.02 KiB) Viewed 7324 times
And I drop another chart to the same form, I see GDI in both the chart and the subchart:
GDI.png
GDI.png (48.02 KiB) Viewed 6987 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Richard
Newbie
Newbie
Posts: 11
Joined: Tue Feb 12, 2013 12:00 am

Re: GDI+, sub charts and blurry lines

Post by Richard » Thu Jul 11, 2013 2:58 pm

why is the GDI+ rendering so poor? it is always blurry - even if I take of the anti alias - thing like the points are blurry as are the tick marks - is this something in your control? Can I disable GDI+ completely?

I have a large number of small points to show - it looks poor even on my 23 inch monitor and even worse on a laptop!

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: GDI+, sub charts and blurry lines

Post by Yeray » Mon Jul 15, 2013 9:02 am

Hi Richard,
Richard wrote:why is the GDI+ rendering so poor? it is always blurry - even if I take of the anti alias - thing like the points are blurry as are the tick marks -
Antialias has some controversy. Some may find it give smoother lines and curves, while some may find it's blurry.
Richard wrote: is this something in your control? Can I disable GDI+ completely?
You should be able to go back to GDI as mentioned above.
Alternatively, you can force it at runtime with:

Code: Select all

uses Series, TeCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TTeeCanvas3D.Create;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply