Get canvas pixel color
Posted: Fri Mar 10, 2017 12:35 am
I am trying to obtain a pixel color in the OnAfterDraw event with
But this always returns claWhite even though I have applied color fill with the Series Region Tool during the plotting.
Code: Select all
X := Chart1.BottomAxis.CalcPosValue(XCoord); Y :=Chart1.LeftAxis.CalcPosValue(YCoord); AColor:=Chart1.Canvas.Pixels[X,Y];