Visit Gigasoft's Web Site
 ProEssentials v9 Help

ResetImageEx

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

 

public int PeFunction.ResetImageEx(int extentX, int extentY, int originX, int originY)

Parameter

Description

extentX

Width in pixels

extentY

Height in pixels

originX

Pixel left top horizontal location of image

originY

Pixel left top vertical location of image

 

The ResetImageEx function rebuilds the control's internal metafile used to paint itself and export via PEgetmeta.

 

The ResetImageEx function is designed to be called in custom printing logic. The parameters extentX and extentY should match the units used when calling Windows API SetViewportExt. The originX and originY parameters should match the units used when calling Windows API SetViewportOrg.

 

This function was needed to handle the new clipping logic built into the image construction process. By default, DisableClipping is FALSE and clipping is enabled, so this function is generally necessary in custom printing logic. If clipping is disabled, then ResetImage can be used instead of ResetImageEx.

 

Comments

For printing example code see common Question 21.

 

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

 

See Also: PeFunction.ResetImage, PEgetmeta