martialarts
Well-known member
Hi. To make a long story shorter, I am creating a graph that resembles an ECG line (graphs heartbeat) but the line needs to change colors at certain dynamic intervals, often in the middle of a blood pulse. In other words, certain segments of the ECG line may have one or more color changes in the middle of them that currently I am trying to code by calling multiple instances of drawline but it is quite confusing and I think there should be a better way to do this.
Is it possible to overload the graphics class in order to overload the drawline method and have it check its position along the X axis before each pixel it draws? This would make the situation extremely easy to handle, more reliable, and would require less code.
Thanks in advance for any help or suggestions!
Is it possible to overload the graphics class in order to overload the drawline method and have it check its position along the X axis before each pixel it draws? This would make the situation extremely easy to handle, more reliable, and would require less code.
Thanks in advance for any help or suggestions!