⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 b.html

📁 windowsAPI介绍。很详细的
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//Netscape Comm. Corp.//DTD HTML//EN">
<html>

<head>
<title>Windows 95 API Dictionary: B</title>
<base TARGET="_self">
<script LANGUAGE="JavaScript">
<!--Cloak
function statbar(txt) {
  window.status = txt;
  setTimeout("erase()",3000);
}
function erase() {
  window.status = "";
}
//Decloak-->
</script>
</head>

<body BGCOLOR="#004000" TEXT="#FFFFFF" LINK="#FFFF00" VLINK="#FF8000" ALINK="#80FF80">

<p><a NAME="top"></a></p>

<h1 ALIGN="center">- B -</h1>

<hr ALIGN="center" WIDTH="85%" SIZE="5">

<p ALIGN="left"><a NAME="bitblt"></a></p>

<h3 ALIGN="center">BitBlt Function</h3>
<code>

<p align="center">Declare Function BitBlt Lib &quot;gdi32.dll&quot; (ByVal hDestDC 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 dwRop As Long) As Long</code><br>
BitBlt transfers one part of a graphic image from one object to another. The original size 
and dimensions of the graphic chunk is preserved. You will have to manually refresh the 
object (using the <i>object</i>.Refresh method) for the image to be updated on the screen. 
It is safe to ignore the value returned. </p>

<table WIDTH="95%" CELLSPACING="0" BORDER="2">
  <tr>
    <td WIDTH="20%"><code>hDestDC</code></td>
    <td WIDTH="80%">The device context of the target object. </td>
  </tr>
  <tr>
    <td><code>x</code></td>
    <td>The x coordinate to use as the upper-left corner of the graphic chunk in the target. </td>
  </tr>
  <tr>
    <td><code>y</code></td>
    <td>The y coordinate to use as the upper-left corner of the graphic chunk in the target. </td>
  </tr>
  <tr>
    <td><code>nWidth</code></td>
    <td>The width of the graphic chunk in pixels. </td>
  </tr>
  <tr>
    <td><code>nHeight</code></td>
    <td>The height of the graphic chunk in pixels. </td>
  </tr>
  <tr>
    <td><code>hSrcDC</code></td>
    <td>The device context of the source object. </td>
  </tr>
  <tr>
    <td><code>xSrc</code></td>
    <td>The x coordinate of the upper-left corner of the graphic chunk in the source. </td>
  </tr>
  <tr>
    <td><code>ySrc</code></td>
    <td>The y coordinate of the upper-left corner of the graphic chunk in the source. </td>
  </tr>
  <tr>
    <td><code>dwRop</code></td>
    <td>A <a HREF="appb.html#blt">Blt flag</a> telling how to transfer the image. </td>
  </tr>
</table>

<p><br>
<b>Example:</b><br>
<code>&nbsp;&nbsp;'Copy the upper-left corner from one picture to another<br>
&nbsp;&nbsp;x = BitBlt(picTarget.hdc, 0, 0, 32, 32, picSource.hdc, 0, 0, SRCCOPY)<br>
&nbsp;&nbsp;picTarget.Refresh</code><br>
<br>
<b>Related Call:</b> <a HREF="s.html#stretchblt">StretchBlt</a><br>
<b>Category:</b> <a HREF="index.html#graphics" REL="Index">Graphics</a><br>
<a HREF="#top">返回最上层</a><a HREF="index.html" REL="Index">.</a> </p>

<hr ALIGN="center" WIDTH="85%" SIZE="5">

<p ALIGN="left"> </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -