Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 2861

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>Interface XSlideRenderer</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="XSlideRenderer-xref.html" class="navimain">Use</a></td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td>
<td class="navisub">Attributes' Summary</td>
<td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td>
<td class="navisub">Attributes' Details</td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">drawing</a> :: </p>
</td>
</tr>
<tr>
<td class="title"><table class="title-table" width="99%">
<tr>
<td width="25%" class="title2">unpublished </td>
<td width="50%" class="title">interface XSlideRenderer</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td/></tr>
<tr>
<td><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>not published</i></dd>
<dt><b>Description</b></dt>
<dd>Create preview bitmaps for single slides.
</dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Methods' Summary</td>
</tr>
<tr>
<td class="imsum_left"><a href="#createPreview">createPreview</a></td>
<td class="imsum_right">Create a preview for the given slide that has the same aspect ratio
 as the page and is as large as possible but not larger than the
 specified size.

 The reason for not using the given size directly as preview size and
 thus possibly changing the aspect ratio is that
 a) a different aspect ratio is not used often, and
 b) leaving the adaption of the actual preview size (according to the
 aspect ratio of the slide) to the slide renderer is more convenient
 to the caller than having to this himself.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#createPreviewForCanvas">createPreviewForCanvas</a></td>
<td class="imsum_right">Exactly the same functionality as <a href="#createPreview()">createPreview()</a>,
 only a different return type:
 com::sun::star::rendering::XBitmap instead
 of com::sun::star::awt::XBitmap.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#calculatePreviewSize">calculatePreviewSize</a></td>
<td class="imsum_right">Return a size that has the given aspect ratio and shares either the
 width or the height with the given maximum size.
 &nbsp;</td>
</tr>
</table>
<a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Methods' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="createPreview" class="membertitle">createPreview</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/XBitmap.html">XBitmap</a></td>
</tr>
<tr>
<td valign="top"><b>createPreview</b>(</td>
<td valign="top">[in] <a href="XDrawPage.html">XDrawPage</a></td>
<td valign="bottom">&nbsp;xSlide,</td>
</tr>
<tr>
<td/><td valign="top">[in] ::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/Size.html">Size</a></td>
<td valign="bottom">&nbsp;aMaximumPreviewPixelSize,</td>
</tr>
<tr>
<td/><td valign="top">[in] short</td>
<td valign="bottom">&nbsp;nSuperSampleFactor );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Create a preview for the given slide that has the same aspect ratio
 as the page and is as large as possible but not larger than the
 specified size.

 The reason for not using the given size directly as preview size and
 thus possibly changing the aspect ratio is that
 a) a different aspect ratio is not used often, and
 b) leaving the adaption of the actual preview size (according to the
 aspect ratio of the slide) to the slide renderer is more convenient
 to the caller than having to this himself.

 </dd>
<dt><b>Parameter xSlide</b></dt>
<dd>The slide for which a preview will be created.
 </dd>
<dt><b>Parameter aMaximumPreviewPixelSize</b></dt>
<dd>The maximum size of the preview measured in pixels. When the
 aspect ratios of this size and of the given slide differ, then
 resulting preview will either have the width or the height of
 this size.
 </dd>
<dt><b>Parameter nSuperSampleFactor</b></dt>
<dd>When larger than the default 1 then internally a larger preview
 is created which, before it is returned, is scaled down to the
 requested size. The intermediate size is nSuperSampleFactor
 times the original size. Values larger than 1 result in higher
 memory consumption and longer runtime.
 This value is an attempt to provide some antialiasing and so to
 provide more readable slide previews. May become obsolete in
 the future when true antialiasing suppport will be integrated.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="createPreviewForCanvas" class="membertitle">createPreviewForCanvas</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">::com::sun::star::<a href="../rendering/module-ix.html">rendering</a>::<a href="../rendering/XBitmap.html">XBitmap</a></td>
</tr>
<tr>
<td valign="top"><b>createPreviewForCanvas</b>(</td>
<td valign="top">[in] <a href="XDrawPage.html">XDrawPage</a></td>
<td valign="bottom">&nbsp;xSlide,</td>
</tr>
<tr>
<td/><td valign="top">[in] ::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/Size.html">Size</a></td>
<td valign="bottom">&nbsp;aMaximumPreviewPixelSize,</td>
</tr>
<tr>
<td/><td valign="top">[in] short</td>
<td valign="bottom">&nbsp;nSuperSampleFactor,</td>
</tr>
<tr>
<td/><td valign="top">[in] ::com::sun::star::<a href="../rendering/module-ix.html">rendering</a>::<a href="../rendering/XCanvas.html">XCanvas</a></td>
<td valign="bottom">&nbsp;xCanvas );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Exactly the same functionality as <a href="#createPreview()">createPreview()</a>,
 only a different return type:
 com::sun::star::rendering::XBitmap instead
 of com::sun::star::awt::XBitmap.
 </dd>
<dt><b>Parameter xCanvas</b></dt>
<dd>This canvas is used create a canvas specific bitmap.
 </dd>
<dt><b>See also</b></dt>
<dd><a href="#createPreview">createPreview</a></dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="calculatePreviewSize" class="membertitle">calculatePreviewSize</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center">
<tr>
<td><table class="table-in-method" border="0">
<tr>
<td valign="top" colspan="3">::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/Size.html">Size</a></td>
</tr>
<tr>
<td valign="top"><b>calculatePreviewSize</b>(</td>
<td valign="top">[in] double</td>
<td valign="bottom">&nbsp;nSlideAspectRatio,</td>
</tr>
<tr>
<td/><td valign="top">[in] ::com::sun::star::<a href="../awt/module-ix.html">awt</a>::<a href="../awt/Size.html">Size</a></td>
<td valign="bottom">&nbsp;aMaximumPreviewPixelSize );</td>
</tr>
</table>
<hr>
<dl>
<dt><b>Description</b></dt>
<dd>Return a size that has the given aspect ratio and shares either the
 width or the height with the given maximum size.
 </dd>
<dt><b>Parameter nSlideAspectRatio</b></dt>
<dd>The aspect ratio must not be 0.
 </dd>
<dt><b>Parameter aMaximumPreviewPixelSize</b></dt>
<dd>The maximum size of the returned preview size.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>