The below represents what is available with RenderTarget 4 methods
DrawLine() Draws a line between two points
DrawRectangle()
Draws a rectangle between two points
FillRectangle()
Draws a rectangle between two points
OnRenderTargetChanged()
Called whenever a Chart's RenderTarget is created or destroyed
the question is .... where previously Plot override was used and I used some organised classes to draw from referencing the graphics object :
can we intermix RenderTarget draw methods with the Draw.xxx eg Draw.Line Draw.Text methods .... and invoke a function/class method from the OnRender ... which manages the other aspects eg. OnCalculateMinMax.
I just want some clarification on this and recommendations/pointers for this ..... for more complex drawing needs that requires methods other than above
ie in onRender can i just use the Draw. methods ... the help description describes about copies being made .... and perhaps this is reserved for more complex drawing where changes and mouse clicks need to be tracked?
OR is it essential to at least use some RenderTarget calls with SharDX brush definitions?
I think this would help clarify in others minds as there is fairly limited documentation on this ... and whilst i have been able to create some OnRender overrides for simple conversions with only a few draw calls required before i embark on my other conversion wanted to check in on this.
any clarification on the above let me know
but it is more of a distinction between the Draw methods whilst i understand OnRender gives ability to control and reference XY and chartcontrol methods for drawing in the general chart region.
thanks
Comment