Debian Codegraph @

docs/kxlcopyimageimm.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_CopyImageImm</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="kxlcopyimagerect.html">Prev</a>
12 <a href="KXL.html">Top</a>
13 <a href="kxlcopyimage.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_CopyImageImm</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_CopyImageImm -- The arbitrary rectangles of an image are copied to a new image.</pre><br>
21
22 <b>Description</b><br>
23 <pre>KXL_Image *KXL_CopyImageImm(KXL_Image *img, Sint16 left, Sint16
24 top, Uint16 width, Uint16 height);</pre><br>
25
26 <b>Arguments</b><br><br>
27 <table border="1">
28 <tr><td>img</td><td>Pointer of KXL_Image structure.</td></tr>
29 <tr><td>left</td><td>Left position of a source image.</td>
30 <tr><td>top</td><td>Top position of a source image.</td>
31 <tr><td>width</td><td>Width of a source image.</td>
32 <tr><td>height</td><td>Height of a source image.</td>
33 </table>
34 <br><br>
35
36 <b>Return Value</b><br><br>
37 Pointer of new KXL_Image structure.
38 <br><br><br>
39
40 <b>Exsample</b><br>
41 <pre>
42 <a href="./sample.bmp">sample.bmp</a>
43 <img src="./sample.gif">
44
45 #include &lt;KXL.h&gt;
46
47 int main(void)
48 {
49 <b>KXL_Image *img, *copy_img;</b>
50
51 KXL_CreateWindow(100, 100, "sample", 0);
52 img = KXL_LoadBitmap("sample.bmp", 0);
53 <b>copy_img = KXL_CopyImageImm(img, 8, 8, 16, 16);</b>
54
55 KXL_SetDrawColor(0x00, 0x00, 0xff);
56 KXL_ClearFrameImm(0, 0, 100, 100);
57 KXL_PutImage(img, 10, 10);
58 KXL_PutImage(copy_img, 50, 50);
59 KXL_UpDateImm(0, 0, 100, 100);
60 getchar();
61 KXL_DeleteImage(img);
62 KXL_DeleteImage(copy_img);
63 KXL_DeleteWindow();
64 return 0;
65 }
66 </pre>
67
68 </body>
69 </html>