?? getwinmetafilebits.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>GetWinMetaFileBits</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16"><a name="GetWinMetaFileBits">GetWinMetaFileBits</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="102%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="102%" colspan="2">Declare Function GetWinMetaFileBits Lib "gdi32"
Alias "GetWinMetaFileBits" (ByVal hemf As Long, ByVal cbBuffer As Long,
lpbBuffer As Byte, ByVal fnMapMode As Long, ByVal hdcRef As Long) As Long</td>
</tr>
<tr>
<td width="102%" colspan="2">說明</td>
</tr>
<tr>
<td width="102%" colspan="2">通過在一個緩沖區中填充用于標準圖元文件的數據,將一個增強型圖元文件轉換成標準windows圖元文件</td>
</tr>
<tr>
<td width="102%" colspan="2">返回值</td>
</tr>
<tr>
<td width="102%" colspan="2">Long,以字節數表示的圖元文件長度。如lpbBuffer為NULL(在這種情況下用一個別名指定ByVal
As Long,從而傳遞一個NULL值)——返回字節數組的長度。零表示出錯(原文:The
size in bytes of the metafile. If lpbBuffer is null (use an alias with the parameter
specified ByVal as Long to pass null to this function)-returns the required size of the
byte array. Zero on error.)</td>
</tr>
<tr>
<td width="102%" colspan="2">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="77%">類型及說明</td>
</tr>
<tr>
<td width="25%">hemf</td>
<td width="77%">Long,欲轉換的增強型圖元文件的句柄。函數調用完畢后,該句柄仍然保持有效</td>
</tr>
<tr>
<td width="25%">cbBuffer</td>
<td width="77%">Long,目標緩沖區的長度</td>
</tr>
<tr>
<td width="25%">lpbBuffer</td>
<td width="77%">Byte,作為目標緩沖區使用的一個字節數組的第一個字節。這個數組的長度至少為cbBuffer個字節</td>
</tr>
<tr>
<td width="25%">fnMapMode</td>
<td width="77%">Long,轉換時采用的映射(對應)模型。通常用MM_ANISOTROPIC創建一個可擴展的圖元文件</td>
</tr>
<tr>
<td width="25%">hdcRef</td>
<td width="77%">Long,一個參考設備場景,用于決定新圖元文件采用的參考分辨率</td>
</tr>
<tr>
<td width="102%" colspan="2">注解</td>
</tr>
<tr>
<td width="102%" colspan="2"><p align="left">有些增強型圖元文件命令沒有對應的標準圖元文件命令。這些命令會轉換成最接近的命令,或者丟棄。結果生成的圖元文件已指定了窗口的顯示范圍。窗口的起點是0,0</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right"><a href="#GetWinMetaFileBits">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -