1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>CAMERA_WidthHeightToSize</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">CAMERA_WidthHeightToSize <IMG src="../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <CODE>#include &lt;twl/camera.h&gt;</CODE><BR>
16  <BR>
17  <CODE><A href="CAMERASize.html">CAMERASize</A> CAMERA_WidthHeightToSize( u16 width, u16 height )</CODE>
18</DL>
19<H2>Arguments</H2>
20<TABLE border="1" width="100%">
21  <TBODY>
22    <TR>
23      <TD width="13%"><EM><STRONG>width</STRONG></EM></TD>
24      <TD width="87%">Width (in pixels)</TD>
25    </TR>
26    <TR>
27      <TD width="13%"><EM><STRONG>height</STRONG></EM></TD>
28      <TD width="87%">Height (in pixels)</TD>
29    </TR>
30  </TBODY>
31</TABLE>
32
33<H2>Return Values</H2>
34<P>
35Returns the camera resolution that corresponds to the specified width and height. Returns <CODE>CAMERA_SIZE_MAX</CODE> if there is no corresponding resolution.
36</P>
37
38<H2>Description</H2>
39<P>
40Returns the <A href="CAMERASize.html"><CODE>CAMERASize</CODE></A> type resolution that corresponds to the width and height specified as arguments.
41</P>
42
43<H2>Revision History</H2>
44<P>2007/11/13 Initial version.</P>
45<hr><p>CONFIDENTIAL</p></body>
46</HTML>
47