Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.41 KB

File metadata and controls

54 lines (35 loc) · 1.41 KB

Home

Function name : GetWorldTransform

Group: Coordinate Space and Transformation - Library: gdi32


Retrieves the current world-space to page-space transformation.


Declaration:

BOOL GetWorldTransform(
	HDC hdc,         // handle to device context
	LPXFORM lpXform  // transformation
);  

FoxPro declaration:

DECLARE INTEGER GetWorldTransform IN gdi32;
	INTEGER hdc,;
	STRING @lpXform  

Parameters:

hdc [in] Handle to the device context.

lpXform [out] Pointer to an XFORM structure that receives the current world-space to page-space transformation.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Conversion function float2int is described in VFP Floating Point Data Type topic on FoxPro Wiki.

The SetWorldTransform function will fail unless the graphics mode for the given device context has been set to GM_ADVANCED by previously calling the SetGraphicsMode function.

See also: SetWorldTransform.