Visit Gigasoft's Web Site
 ProEssentials v9 Help



Pego, Pesgo, Pepso


public int PeFunction.PartialResetImage ( int startingPoint, int pointsToDraw )




Starting point index where new data has been added.


Number of data points starting at nStartingPoint which contain new data.


This function is called to partially redraw the image when data is added to point indices starting at nStartingPoint through nStartingPoint + nPointsToUpdate. All subset data within this point range will be redrawn.



NonZero if the function was successful, otherwise Zero.



Within the demo, see example 020 and 119 for more info.


This function was developed to aid in speeding update rate when the object contains a large amount of data. For example, if the object contains 5000 points and you want to add just one point to the end, use PeData.Y(nSubset, 4999) to add the necessary data point(s), then call this function to identify those data point indices which were recently added. This function plots the plotting method graphics directly to the cached DC and does not draw grid-lines or point-labels. Because of this, you will normally call PEpartialresetimage repeatedly but eventually on some interval you will want to call ReinitializeResetImage to update the image completely.


Chapter 6 of the manual has a section on Real-Time which discusses this function in more detail. Plus, look in the included example project for demo code using this feature.


PeFunction.PartialResetImage members of Pego.PeFunction, Pesgo.PeFunction, Pepso.PeFunction