?? extfloodfill.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>ExtFloodFill</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="ExtFloodFill">ExtFloodFill</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%">
<tr>
<td width="102%" colspan="3">VB聲明</td>
</tr>
<tr>
<td width="102%" colspan="3">Declare Function ExtFloodFill Lib "gdi32" Alias
"ExtFloodFill" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal
crColor As Long, ByVal wFillType As Long) As Long</td>
</tr>
<tr>
<td width="102%" colspan="3">說明</td>
</tr>
<tr>
<td width="102%" colspan="3">在指定的設備場景里,用當前選擇的刷子填充一個區域</td>
</tr>
<tr>
<td width="102%" colspan="3">返回值</td>
</tr>
<tr>
<td width="102%" colspan="3">Long,非零表示成功,零表示失敗。會設置<a
href="GetLastError.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="102%" colspan="3">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="77%" colspan="2">類型及說明</td>
</tr>
<tr>
<td width="25%">hdc</td>
<td width="77%" colspan="2">Long,設備場景的句柄</td>
</tr>
<tr>
<td width="25%">x,y</td>
<td width="77%" colspan="2">Long,開始填充的一個點,采用邏輯坐標表示</td>
</tr>
<tr>
<td width="25%">crColor</td>
<td width="77%" colspan="2">Long,要使用的邊界顏色</td>
</tr>
<tr>
<td width="25%" rowspan="3">wFillType</td>
<td width="77%" colspan="2">Long,欲執行的填充類型,由下述任何一個常數決定</td>
</tr>
<tr>
<td width="37%">FLOODFILLBORDER</td>
<td width="38%">等同于<a href="FloodFill.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/FloodFill.htm">FloodFill</a>函數的功能</td>
</tr>
<tr>
<td width="37%">FLOODFILLSURFACE</td>
<td width="38%">從指定的點向外填充,只到找到了crColor顏色(在邊框采用了多種顏色時使用)</td>
</tr>
<tr>
<td width="102%" colspan="3">注解</td>
</tr>
<tr>
<td width="102%" colspan="3"><p align="left">如指定了FLOODFILLBORDER,那么x,y點絕對不能為crColor顏色。如指定了FLOODFILLSURFACE,那么x,y點必須是crColor顏色。這個函數只能在光柵設備中使用。可用<a
href="GetDeviceCaps.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetDeviceCaps.htm">GetDeviceCaps</a>函數判斷設備是否支持這個函數</td>
</tr>
<tr>
<td width="102%" colspan="3">提示</td>
</tr>
<tr>
<td width="102%" colspan="3">一旦指定了FLOODFILLBORDER,務必保證初始點的顏色沒有crColor。如果使用的是FLOODFILLSURFACE,務必保證初始點有顏色crColor(這是函數執行失敗最常見的兩個原因)。注意保證初始點位于剪切區內</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="#ExtFloodFill">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -