<html> <head> <title>Struct Texture</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="Texture-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="#Elements" class="navisub">Elements' Summary</a></td> <td class="navisub"><a href="#ElementDetails" class="navisub">Elements' Details</a></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">rendering</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">struct Texture</td> <td width="*"/></tr> </table> </td> </tr> <tr> <td/></tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>Contains all information needed to define a texture.</dd> <dd><p> This structure contains all information necessary to define a texture. A texture describes the filled area of polygonal shapes, providing its own transformation matrix, repeat mode, and transparency.<p> To achieve uniformity, if this texture has a bitmap set, it is scaled in such a way that it will cover the same [0,1]x[0,1] box as the hatch and the gradient. The transformation member can then be used to scale the complete texture as it fits suit.<p> </dd> <dt><b/></dt> <dd/></dl> </td> </tr> </table> <hr> <a name="Elements"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Elements' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#AffineTransform">AffineTransform</a></td> <td class="imsum_right">Texture transformation from texture to primitive space. </td> </tr> <tr> <td class="imsum_left"><a href="#Alpha">Alpha</a></td> <td class="imsum_right">Overall transparency of the texturing. </td> </tr> <tr> <td class="imsum_left"><a href="#NumberOfHatchPolygons">NumberOfHatchPolygons</a></td> <td class="imsum_right">Specifies the number of parameterized polygons used for the texture. </td> </tr> <tr> <td class="imsum_left"><a href="#Bitmap">Bitmap</a></td> <td class="imsum_right">Texture bitmap. </td> </tr> <tr> <td class="imsum_left"><a href="#Gradient">Gradient</a></td> <td class="imsum_right">Texture gradient. </td> </tr> <tr> <td class="imsum_left"><a href="#Hatching">Hatching</a></td> <td class="imsum_right">Texture hatching. </td> </tr> <tr> <td class="imsum_left"><a href="#HatchAttributes">HatchAttributes</a></td> <td class="imsum_right">Specifies the stroke attributes used for hatching. </td> </tr> <tr> <td class="imsum_left"><a href="#RepeatModeX">RepeatModeX</a></td> <td class="imsum_right">Repeat mode of the texture, x direction. </td> </tr> <tr> <td class="imsum_left"><a href="#RepeatModeY">RepeatModeY</a></td> <td class="imsum_right">Repeat mode of the texture, y direction. </td> </tr> </table> <a name="ElementDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Elements' Details</td> </tr> <tr> <td class="imdetail"><a name="AffineTransform" class="membertitle">AffineTransform</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>::com::sun::star::<a href="../geometry/module-ix.html">geometry</a>::<a href="../geometry/AffineMatrix2D.html">AffineMatrix2D</a> <b>AffineTransform</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Texture transformation from texture to primitive space.</dd> <dd><p> This member allows arbitrary transformations of the texture, relative to the textured primitive. Thus, the total transformation from the [0,1]x[0,1] texture space to the device coordinate space is the concatenation of texture, render state, and view state transformation (with only render state and view state transformation being applied to the textured primitive).<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="Alpha" class="membertitle">Alpha</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>double <b>Alpha</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Overall transparency of the texturing.</dd> <dd><p> The valid range for this value is [0,1], where 0 denotes complete transparency, and 1 denotes fully opaque.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="NumberOfHatchPolygons" class="membertitle">NumberOfHatchPolygons</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>NumberOfHatchPolygons</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Specifies the number of parameterized polygons used for the texture.</dd> <dd><p> This member specifies the number of polygons the parametric polygon interface is queried. The continuous range [0,1] of the XParametricPolyPolygon::getOutline() method is divided up into numberOfHatchPolygons equal parts, and for everyone of these parts, the start of the interval is plugged into the getOutline method. For example, if numberOfHatchPolygons is 2, then getOutline is called twice, once with 0.0 and once with 0.5. Use this parameter to control the density of the hatching.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="Bitmap" class="membertitle">Bitmap</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><a href="XBitmap.html">XBitmap</a> <b>Bitmap</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Texture bitmap.</dd> <dd><p> This member can be used together with gradient and hatching.<p> The bitmap is scaled to a one-by-one rectangle, to cover the same area as both the gradient and the hatching.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="Gradient" class="membertitle">Gradient</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><a href="XParametricPolyPolygon2D.html">XParametricPolyPolygon2D</a> <b>Gradient</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Texture gradient.</dd> <dd><p> This member can be used together with bitmap and hatching. The parametric polygons color value is used to fill the returned polygonal outlines.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="Hatching" class="membertitle">Hatching</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><a href="XParametricPolyPolygon2D.html">XParametricPolyPolygon2D</a> <b>Hatching</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Texture hatching.</dd> <dd><p> This member can be used together with bitmap and gradient. The parametric polygons color value is used to stroke the returned polygonal outlines.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="HatchAttributes" class="membertitle">HatchAttributes</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><a href="StrokeAttributes.html">StrokeAttributes</a> <b>HatchAttributes</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Specifies the stroke attributes used for hatching.</dd> <dd><p> Use 0.0 as the strokeWidth here to indicate hair lines.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="RepeatModeX" class="membertitle">RepeatModeX</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>byte <b>RepeatModeX</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Repeat mode of the texture, x direction.</dd> <dd><p> The repeat mode is separated into x and y direction, this is the x direction part. Permissible values are from the <a href="TexturingMode.html">TexturingMode</a> constants.<p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="RepeatModeY" class="membertitle">RepeatModeY</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>byte <b>RepeatModeY</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>Repeat mode of the texture, y direction.</dd> <dd><p> The repeat mode is separated into x and y direction, this is the y direction part. Permissible values are from the <a href="TexturingMode.html">TexturingMode</a> constants.<p> </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>