?? stretchblt.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>StretchBlt</title>
</head>
<body background="../../../images/gray_weave.gif" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16"><a name="StretchBlt">StretchBlt</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="100%" colspan="2">Declare Function StretchBlt Lib "gdi32" Alias
"StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth
As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As
Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long</td>
</tr>
<tr>
<td width="100%" colspan="2">說明</td>
</tr>
<tr>
<td width="100%" colspan="2">將一幅位圖從一個設備場景復制到另一個。源和目標DC相互間必須兼容。這個函數會在設備場景中定義一個目標矩形,并在位圖中定義一個源圖象。源矩形會根據需要進行伸縮,以便與目標矩形的大小相符</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Long,非零表示成功,零表示失敗。會設置<a
href="GetLastError.htm">GetLastError</a></td>
</tr>
<tr>
<td width="100%" colspan="2">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="75%">類型及說明</td>
</tr>
<tr>
<td width="25%">hdc</td>
<td width="75%">Long,目標設備場景</td>
</tr>
<tr>
<td width="25%">x,y</td>
<td width="75%">Long,目標矩形左上角的x,y坐標,以邏輯坐標表示</td>
</tr>
<tr>
<td width="25%">nWidth,nHeight</td>
<td width="75%">Long,目標矩形的寬度和高度,以邏輯坐標表示</td>
</tr>
<tr>
<td width="25%">hSrcDC</td>
<td width="75%">Long,源設備場景。如光柵運算未指定一個源,則這個參數應為零</td>
</tr>
<tr>
<td width="25%">xSrc,ySrc</td>
<td width="75%">Long,用源DC的邏輯坐標表示的源矩形左上角位置</td>
</tr>
<tr>
<td width="25%">nSrcWidth,nSrcHeight</td>
<td width="75%">Long,分別指定用邏輯單位(以源DC為基礎)傳輸的一幅圖象的寬度和高度。如其中有一個參數的符號(指正負號)與對應的目標參數不符,位圖就會在對應的軸上作鏡像轉換處理</td>
</tr>
<tr>
<td width="25%">dwRop</td>
<td width="75%">Long,傳輸過程中進行的光柵運算。如刷子屬于光柵運算的一部分,就使用選入目標DC的刷子</td>
</tr>
<tr>
<td width="100%" colspan="2">注解</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">可用<a href="GetDeviceCaps.htm">GetDeviceCaps</a>函數判斷特定的設備場景是否支持此函數<br>
不可選擇對源位圖進行剪切或旋轉處理,源位圖也不能是一個圖元文件設備場景</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="#StretchBlt">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -