Using Win32 functions in Visual FoxPro Image Gallery
Metafile
..msdn
CloseEnhMetaFile
CreateEnhMetaFile
DeleteEnhMetaFile
GetEnhMetaFile
GetEnhMetaFileHeader
PlayEnhMetaFile
Code examples:
How to display picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
How to print picture stored in enhanced-format metafile (*.emf)
PlayEnhMetaFile
..msdn    Add comment     W32 Constants      Translate this page
The PlayEnhMetaFile function displays the picture stored in the specified enhanced-format metafile.
Code examples:
How to print FoxPro form -- II
How to print picture stored in enhanced-format metafile (*.emf)
How to display picture stored in enhanced-format metafile (*.emf)
Declaration:
BOOL PlayEnhMetaFile(
  HDC hdc,            // handle to DC
  HENHMETAFILE hemf,  // handle to an enhanced metafile
  CONST RECT *lpRect  // bounding rectangle
);
FoxPro declaration:
DECLARE INTEGER PlayEnhMetaFile IN gdi32;
    INTEGER   hdc,;
    INTEGER   hemf,;
    STRING  @ lpRect

Parameters:
hdc
[in] Handle to the device context for the output device on which the picture will appear.

hemf
[in] Handle to the enhanced metafile.

lpRect
[in] Pointer to a RECT structure that contains the coordinates of the bounding rectangle used to display the picture. The coordinates are specified in logical units.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
When an application calls the PlayEnhMetaFile function, the system uses the picture frame in the enhanced-metafile header to map the picture onto the rectangle pointed to by the lpRect parameter.

This picture may be sheared or rotated by setting the world transform in the output device before calling PlayEnhMetaFile. Points along the edges of the rectangle are included in the picture.

An enhanced metafile can be embedded in a newly created enhanced metafile by calling PlayEnhMetaFile and playing the source enhanced metafile into the device context for the new enhanced metafile.
Word Index links for the PlayEnhMetaFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-05-22 16:46:14
Modified: 2003-05-22 16:48:59
Visited in last 7 days: 20
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.156.92.243)
11 sec.Function: 'FindCloseChangeNotification'
Function group: 'File Management'
21 sec.
Function group: 'ODBC API'
31 sec.Function: 'waveInClose'
Function group: 'Windows Multimedia'
41 sec.Function: 'GdipGetSmoothingMode'
Function group: 'GDI+ Graphics'
51 sec.Function: 'InternetConnect'
1.18 min.Function: 'GdipGetImageHeight'
Function group: 'GDI+ Image'
1.33 min.Example: 'How to display picture stored in enhanced-format metafile (*.emf)'
1.67 min.Function: 'AVIStreamGetFrameClose'
Function group: 'Windows Multimedia'
1.82 min.Function: 'GdipCreateFromHDC'
Function group: 'GDI+ Graphics'
2.15 min.Function: 'AVIStreamTimeToSample'
Function group: 'Windows Multimedia'
Google
Advertise here!