Visit Gigasoft's Web Site
 ProEssentials v9 Help

ResetImage

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

 

public int ResetImage ( int width, int height )

 

Parameter

Description

width

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

height

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 )

Pego1.Refresh

 

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 ()

Pego1.Refresh

 

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.)

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

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

 

See Also: PeFunction.ResetImageEx