1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>G2_SetBG2Affine</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">G2_SetBG2Affine <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19  <PRE><CODE>#include &lt;nitro/gx/g2.h&gt;
20
21void G2_SetBG2Affine(
22    const MtxFx22 * mtx,
23    int centerX,
24    int centerY,
25    int x1,
26    int y1
27);</CODE></PRE>
28  </dd>
29</dl><h2>Arguments</h2>
30
31<table border="1" width="100%">
32
33    <tr>
34    <td width="13%"><em><strong><font face="Courier New">mtx</font></strong></em></td>
35    <td width="87%">Pointer to the conversion matrix</td>
36  </tr>
37    <TR>
38      <TD><em><strong><font face="Courier New"><em><strong><code>centerX</code></strong></em>&nbsp;&nbsp;</font></strong></em></TD>
39      <TD>x-component of the coordinates of the center of rotation</TD>
40    </TR>
41    <TR>
42      <TD><em><strong><font face="Courier New"><em><strong><code>centerY</code></strong></em>&nbsp;&nbsp;</font></strong></em></TD>
43      <TD>y-component of the coordinates of the center of rotation</TD>
44    </TR>
45    <TR>
46      <TD><em><strong><font face="Courier New">x1</font></strong></em></TD>
47      <TD>x-component of the coordinates before rotation</TD>
48    </TR>
49    <TR>
50      <TD><em><strong><font face="Courier New">y1</font></strong></em></TD>
51      <TD>y-component of the coordinates before rotation</TD>
52    </TR>
53  </table>
54<h2>Return Values</h2>
55<p>None.</p>
56<H2>Description</H2>
57<P>This function sets the BG2 affine transformation. The point <code>(x2, y2)</code> after affine transformation is obtained with the following formula:</P>
58<P><span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size: 12.0pt;font-family:Century;mso-fareast-font-family:"MS ??";mso-bidi-font-family: "Times New Roman";mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language: JA;mso-bidi-language:AR-SA'></span><span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size: 12.0pt;font-family:Century;mso-fareast-font-family:"MS ??";mso-bidi-font-family: "Times New Roman";mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language: JA;mso-bidi-language:AR-SA'><span style='mso-text-raise:-15.0pt'><IMG width="313" height="48" src="bg_affine_formula.gif" v:shapes="_x0000_i1025"></span></span></P>
59<h2>See Also</h2>
60<P><A href="G2_SetBG3Affine.html">G2_SetBG3Affine</A></P>
61<H2>Revision History</H2>
62<P>2004/01/19 Initial version.</P>
63<hr><p>CONFIDENTIAL</p></body>
64</html>
65