📄 group__bmp__fns.htm
字号:
<td class="mdname" nowrap> <em>src</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Scales a BITMAP object into another BITMAP object by using DDA algorithm. <p>This function scales a BITMAP object <em>src</em> into another BITMAO object <em>dst</em> by using DDA algorithm. The source rectangle and the destination rectangle both are defined in the BITMAP objects.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dst</em> </td><td>The destination BITMAP object. </td></tr> <tr><td valign="top"></td><td valign="top"><em>src</em> </td><td>The srouce BITMAP object. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__fns.htm#ga1">FillBoxWithBitmap</a>, <a class="el" href="group__bmp__fns.htm#ga4">StretchBlt</a>, <a class="el" href="group__bmp__struct.htm">Bitmap structure</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::SetPixelInBitmap"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetPixelInBitmap </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="struct__BITMAP.htm">BITMAP</a> * </td> <td class="mdname" nowrap> <em>bmp</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> </td> <td class="mdname" nowrap> <em>pixel</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets pixel value in a BITMAP object. <p>This function sets the pixel value at the position <em></em>(x,y) in the BITMAP object <em>bmp</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>bmp</em> </td><td>The BITMAP object. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>x,y: The position of the pixel in the bitmap relative to the upper-left corner of the bitmap. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>x,y: The position of the pixel in the bitmap relative to the upper-left corner of the bitmap. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pixel</em> </td><td>The pixel value.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success. If the position is out of the bitmap, FALSE returned.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__fns.htm#ga6">GetPixelInBitmap</a>, <a class="el" href="group__bmp__struct.htm">Bitmap structure</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::StretchBlt"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void GUIAPI StretchBlt </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hsdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>sx</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>sy</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>sw</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>sh</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hddc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>dx</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>dy</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>dw</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>dh</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname" nowrap> <em>dwRop</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Copies a bitmap from a source rectangle into a destination rectangle, streches the bitmap if necessary. <p>This function copies a bitmap from a source rectangle into a destination rectangle, streching or compressing the bitmap to fit the dimension of the destination rectangle, if necessary. This function is similar with <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__fns.htm#ga3">BitBlt</a> function except the former scaling the bitmap. <em></em>(dw,dh) specifies the size of the destination rectangle.</dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hsdc</em> </td><td>The source device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sx</em> </td><td>The x coordinate of the upper-left corner of the rectangle in the source DC. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sy</em> </td><td>The y coordinate of the upper-left corner of the rectangle in the source DC. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sw</em> </td><td>The width of the source rectangle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sh</em> </td><td>The height of the source rectangle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hddc</em> </td><td>The destination device context <em>hddc</em>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dx</em> </td><td>The x coordinate of the upper-left corner of the rectangle in the destination DC. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dy</em> </td><td>The y coordinate of the upper-left corner of the rectangle in the destination DC. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dw</em> </td><td>The width of the destination rectangle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dh</em> </td><td>The height of the destination rectangle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dwRop</em> </td><td>The raster operation, currently ignored.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>The source rect should be contained in the device space entirely, and all coordinates should be in the device space.<p>The alpha and color key settings of the source DC will not come into play.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__fns.htm#ga3">BitBlt</a>, <a class="el" href="group__dc__fns.htm#ga17">SetMemDCAlpha</a>, <a class="el" href="group__dc__fns.htm#ga18">SetMemDCColorKey</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -