Debian Codegraph @

docs/kxlstrechimage.html

raw
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
5 <meta name="GENERATOR" content="emacs">
6 <meta name="Author" content="kacchan">
7 <title>KXL_StrechImage</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="kxlcopystretchimage.html">Prev</a>
12 <a href="KXL.html">Top</a>
13 <a href="kxlputimage.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_StrechImage</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_StrechImage -- An image are expanded or reduced and it copies to a new image.
21 For the compatibility of 1.1.4 or earlier.
22 </pre><br>
23
24 <b>Description</b><br>
25 <pre>KXL_Image *KXL_StrechImage(KXL_Image *img, Uint16 width, Uint16 height);</pre><br>
26
27 <b>Arguments</b><br><br>
28 <table border="1">
29 <tr><td>img</td><td>Pointer of KXL_Image structure.</td></tr>
30 <tr><td>width</td><td>New width</td></tr>
31 <tr><td>height</td><td>New height</td></tr>
32 </table>
33 <br><br>
34
35 <b>Return Value</b><br><br>
36 Pointer of new KXL_Image structure.
37 <br><br><br>
38
39 <b>Exsample</b><br>
40 <pre>
41 <a href="./sample.bmp">sample.bmp</a>
42 <img src="./sample.gif">
43
44 #include &lt;KXL.h&gt;
45
46 int main(void)
47 {
48 <b>KXL_Image *img, *copy_img;</b>
49
50 KXL_CreateWindow(100, 100, "sample", 0);
51 img = KXL_LoadBitmap("sample.bmp", 0);
52 <b>copy_img = KXL_StrechImage(img, 78, 78);</b>
53
54 KXL_SetDrawColor(0x00, 0x00, 0xff);
55 KXL_ClearFrameImm(0, 0, 100, 100);
56 KXL_PutImage(img, 10, 10);
57 KXL_PutImage(copy_img, 20, 20);
58 KXL_UpDateImm(0, 0, 100, 100);
59 getchar();
60 KXL_DeleteImage(img);
61 KXL_DeleteImage(copy_img);
62 KXL_DeleteWindow();
63 return 0;
64 }
65 </pre>
66
67 </body>
68 </html>