qml-qtcanvas3d-textureimage.html 8.68 KB
Newer Older
xuebingbing's avatar
xuebingbing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- teximage3d.cpp -->
  <title>TextureImage QML Type | Qt Canvas 3D 5.11</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.11</a></td><td ><a href="qtcanvas3d-index.html">Qt Canvas 3D</a></td><td ><a href="qtcanvas3d-qmlmodule.html">QML Types</a></td><td >TextureImage QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.11.2 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">TextureImage QML Type</h1>
<span class="subtitle"></span>
<!-- $$$TextureImage-brief -->
<p>Contains a texture image. <a href="#details">More...</a></p>
<!-- @@@TextureImage -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtCanvas3D 1.1</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  QtCanvas3D 1.0</td></tr></table></div><ul>
<li><a href="qml-qtcanvas3d-textureimage-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcanvas3d-textureimage.html#errorString-28-29-prop">errorString()</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcanvas3d-textureimage.html#height-28-29-prop">height()</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtcanvas3d-textureimage.html#imageState-28-29-prop">imageState()</a></b></b> : TextureImageState</li>
<li class="fn"><b><b><a href="qml-qtcanvas3d-textureimage.html#src-28-29-prop">src()</a></b></b> : url</li>
<li class="fn"><b><b><a href="qml-qtcanvas3d-textureimage.html#width-28-29-prop">width()</a></b></b> : int</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">TextureImage <b><b><a href="qml-qtcanvas3d-textureimage.html#create-method">create</a></b></b>()</li>
<li class="fn">int <b><b><a href="qml-qtcanvas3d-textureimage.html#id-method">id</a></b></b>()</li>
<li class="fn">TextureImage <b><b><a href="qml-qtcanvas3d-textureimage.html#resize-method">resize</a></b></b>(int <i>width</i>,  int <i>height</i>)</li>
</ul>
<!-- $$$TextureImage-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>An uncreatable QML type that contains a texture image created by calling <a href="qml-qtcanvas3d-textureimagefactory.html#newTexImage-method">TextureImageFactory::newTexImage()</a> and settings the <code>src</code> of the image.</p>
<p><b>See also </b><a href="qml-qtcanvas3d-textureimagefactory.html">TextureImageFactory</a>.</p>
<!-- @@@TextureImage -->
<h2>Property Documentation</h2>
<!-- $$$errorString() -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="errorString-28-29-prop">
<td class="tblQmlPropNode"><p>
<a name="errorString-28-29-prop"></a><span class="name">errorString()</span> : <span class="type"><a href="../qtqml/qml-string.html">string</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the error string if an error happened during image creation.</p>
</div></div><!-- @@@errorString() -->
<br/>
<!-- $$$height() -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="height-28-29-prop">
<td class="tblQmlPropNode"><p>
<a name="height-28-29-prop"></a><span class="name">height()</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the texture image height.</p>
</div></div><!-- @@@height() -->
<br/>
<!-- $$$imageState() -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="imageState-28-29-prop">
<td class="tblQmlPropNode"><p>
<a name="imageState-28-29-prop"></a><span class="name">imageState()</span> : <span class="type">TextureImageState</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the texture image state. It is one of <code>TextureImage.INITIALIZED</code>, <code>TextureImage.LOAD_PENDING</code>, <code>TextureImage.LOADING</code>, <code>TextureImage.LOADING_FINISHED</code> or <code>TextureImage.LOADING_ERROR</code>.</p>
</div></div><!-- @@@imageState() -->
<br/>
<!-- $$$src() -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="src-28-29-prop">
<td class="tblQmlPropNode"><p>
<a name="src-28-29-prop"></a><span class="name">src()</span> : <span class="type"><a href="../qtqml/qml-url.html">url</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the url source where the image data is loaded from.</p>
</div></div><!-- @@@src() -->
<br/>
<!-- $$$width() -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="width-28-29-prop">
<td class="tblQmlPropNode"><p>
<a name="width-28-29-prop"></a><span class="name">width()</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the texture image width.</p>
</div></div><!-- @@@width() -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$create -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="create-method">
<td class="tblQmlFuncNode"><p>
<a name="create-method"></a><span class="type"><a href="qml-qtcanvas3d-textureimage.html">TextureImage</a></span> <span class="name">create</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns a new texture image.</p>
</div></div><!-- @@@create -->
<br/>
<!-- $$$id -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="id-method">
<td class="tblQmlFuncNode"><p>
<a name="id-method"></a><span class="type"><a href="../qtqml/qml-int.html">int</a></span> <span class="name">id</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Contains the object id.</p>
</div></div><!-- @@@id -->
<br/>
<!-- $$$resize -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="resize-method">
<td class="tblQmlFuncNode"><p>
<a name="resize-method"></a><span class="type"><a href="qml-qtcanvas3d-textureimage.html">TextureImage</a></span> <span class="name">resize</span>(<span class="type"><a href="../qtqml/qml-int.html">int</a></span> <i>width</i>,  <span class="type"><a href="../qtqml/qml-int.html">int</a></span> <i>height</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns a copy of the texture image resized to the given <i>width</i> and <i>height</i>.</p>
</div></div><!-- @@@resize -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2018 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>