Visit Gigasoft's Web Site
 ProEssentials v9 Help



Pego, Pesgo, Pe3do, Pepso, Pepco


public int ResetImage ( int width, int height )





Width in pixels, if zero, uses control's current width.


Height in pixels, if zero, uses control's current height.


The ResetImage function rebuilds the control's image used to paint itself.


This method can be called as part of an objects initialization as shown below, or more commonly, not needed when PeFunction.ReintializeResetImage is called as it incorporates this call.


Used at the end of an objects initialization or reinitialization, if not calling ReinitializeResetImage, this call is used as follows...


Pego1.PeFunction.Reinitialize ()

Pego1.PeFunction.ResetImage( 0, 0 )



Or, more commonly, if you actually use this function, it is used like...


Pego1.PeFunction.Reinitialize ()

// Read ManualMaxY, or other properties related to your logic,
// and possibly add/adjust annotations or settings with

// respect to ManualMaxY for example.

Pego1.PeFunction.ResetImage ()



The above code allows you to interogate properties related to data/scales and update properties with respect to these readings without causing an additional image to be generated (which can be a lengthy process for larger data sets.)



NonZero if the function was successful, otherwise Zero.



PeFunction.ResetImage members of Pego.PeFunction, Pesgo.PeFunction, Pe3do.PeFunction, Pepso.PeFunction, Pepco.PeFunction


See Also: PeFunction.ResetImageEx