📄 of_insert_bitmap.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Pb2xls developer's reference</title>
<link rel="STYLESHEET" href="style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<!-- Reference header -->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=footer_text width=20%>Release 1.6<br>15 September 2004</td>
<td class=doc_header align="center">Developer's reference</td>
<td width=20% align="right">
<a class=hidden_link href="http://desta.com.ua/pb2xls/"><img src=pb2xls_logo.gif alt="PB2XLS for PowerBuilder" border=0></a></td>
</tr>
</table>
<hr>
<table cellspacing=0 cellpadding=0 class=path_table> <tr><td><a class=hidden_link href=reference.htm>Reference</a> > <a class=hidden_link href=n_xls_worksheet.htm>N_XLS_WORKSHEET</a> > <a class=hidden_link href=of_insert_bitmap.htm>of_insert_bitmap</a></td></tr> </table>
<table width=100%><tr><td class=light_line></td></tr></table><p class=head1>
of_insert_bitmap() method
</p>
<p class=txt>
This method can be used to insert a bitmap into a worksheet. The bitmap must be a 24 bit, true color bitmap without optimization. See Example09.
</p>
<p class=head2>Syntax</p>
<div class=padding_txt>
<table cellpadding=7><tr class=grey_box><td class=txt>
<i>Worksheet.</i><b>of_insert_bitmap </b><i>( Row, Col, Filename{, X, Y{, ScaleWidth, ScaleHeight}})</i>
</td></tr></table></div>
<p class=head2>Parameters</p>
<div class=padding_txt>
<table cellpadding=3>
<tr class=grey_box><td class=txt><i>Row</i></td><td class=txt>The unsigned integer whose value is the row where top left corner of the image will be placed</td></tr>
<tr class=grey_box><td class=txt><i>Col</i></td><td class=txt>The unsigned integer whose value is the column where top left corner of the image will be placed</td></tr>
<tr class=grey_box><td class=txt><i>Filename</i></td><td class=txt>A string whose value is the name of the bitmap file you want to insert. If filename is not on the operating system's search path, you must enter the fully qualified name</td></tr>
<tr class=grey_box><td class=txt><i>X (optional)</i></td><td class=txt>The unsigned integer whose value is the horizontal offset from the top left hand corner of the the cell specified by Row and Col. The offset value is in pixels. Default 0.</td></tr>
<tr class=grey_box><td class=txt><i>Y (optional)</i></td><td class=txt>The unsigned integer whose value is the vertical offset from the top left hand corner of the the cell specified by Row and Col. Default 0.</td></tr>
<tr class=grey_box><td class=txt><i>ScaleWidth (optional)</i></td><td class=txt>The double whose value is the horizontal scale factor. Default 1.</td></tr>
<tr class=grey_box><td class=txt><i>ScaleHeight (optional)</i></td><td class=txt>The double whose value is the vertical scale factor. Default 1.</td></tr>
</table></div>
<p class=head2>
Description
</p>
<div class=padding_txt><p class=txt>
Note: you must call <a class=hidden_link href=of_set_row_height.htm>of_set_row_height()</a> or <a class=hidden_link href=of_set_column_width.htm>of_set_column_width()</a> before <a class=hidden_link href=of_insert_bitmap.htm>of_insert_bitmap()</a> if you wish to change the default dimensions of any of the rows or columns that the images occupies</p></div>
<p class=head2>
Return value
</p>
<div class=padding_txt> <p class=txt>
Integer. Returns 1 if it succeeds and -1 if an error occurs.</p></div>
<p class=head2>
Examples
</p>
<pre>
worksheet.<a class=hidden_link href=of_insert_bitmap.htm>of_insert_bitmap</a>( 0, 3, 'c:\images\image.bmp')
worksheet.<a class=hidden_link href=of_insert_bitmap.htm>of_insert_bitmap</a>( 1, 5, 'c:\images\image.bmp', 10, 13)
worksheet.<a class=hidden_link href=of_insert_bitmap.htm>of_insert_bitmap</a>( 1, 5, 'c:\images\image.bmp', 0, 0, 2, 2)</pre>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr><td colspan=2 class=empty_line></td></tr>
<tr><td colspan=2 class=line></td></tr>
<tr>
<td class=footer_text align="left">© 2003, 2004 <a class=hidden_link href="http://desta.com.ua">Desta, Ltd.</a> All rights reserved.</td>
<td class=footer_text align="right">
<a class=hidden_link href="mailto:pb2xls_support@Desta.com.ua">SupportDesk</a></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -