Search found 4 matches

by Rob62
Thu Mar 01, 2012 10:40 pm
Forum: VCL
Topic: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line
Replies: 6
Views: 4721

Re: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line

I've discovered the issues related to Canvas.ClipRectangle in TeeAntiAlias: I found that "TeeAntiAlias.LineTo" was drawing lines beyond the bounds of "Rect" in ClipRectangle. I'm sure there is going to be a better way of doing this, but the best I could do to overcome this issue was to place "IClipR...
by Rob62
Tue Feb 28, 2012 11:44 am
Forum: VCL
Topic: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line
Replies: 6
Views: 4721

Re: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line

No worries, Since you are going to have a look at this procedure at some point, here are some more fixes in same procedure (to prevent a "ghosting effect" being drawn at chart.height-2 or chart.width-2 when line is attempted to be drawn beyond chart height or width and then antialiased): ... ///////...
by Rob62
Fri Feb 24, 2012 12:32 am
Forum: VCL
Topic: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line
Replies: 6
Views: 4721

Re: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line

I've got it working. Here are proposed changes to the DoLineTo sub-procedure of the TAntiAliasCanvas.SetAntiAlias procedure: if IPenWidth>1 then begin Old:=IPenWidth; Pen.Width:=IPenWidth; IPenColor:=ColorToRGB(Pen.Color); OldP:=Current; for t:=0 to Old-1 do begin IAlias:=(t=0) or (t=Old-1); tmp:=(O...
by Rob62
Thu Feb 23, 2012 10:21 pm
Forum: VCL
Topic: TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line
Replies: 6
Views: 4721

TAntiAliasCanvas.LineTo with IPenWidth=2 doesn't draw a line

I'm using Delphi5 Pro with TeeChart Pro 2011 Full Source Code. Here are the relevant settings when calling TAntiAliasCanvas.LineTo function: IAlias:=True; Current.x:=830; Current.y:=255; x:=831; y:=256; Pen.Style:=psSolid; LinePen.Width:=2; Pen.Width:=2; IPenWidth:=2; IPenSmallDot:= False; When draw...