1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc --> 6<title>ImageSource (library 3.9.0 API)</title> 7<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 8<script type="text/javascript" src="../../../../script.js"></script> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 try { 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="ImageSource (library 3.9.0 API)"; 15 } 16 } 17 catch(err) { 18 } 19//--> 20var methods = {"i0":9,"i1":9,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":9,"i14":10,"i15":10,"i16":10,"i17":9,"i18":9}; 21var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; 22var altColor = "altColor"; 23var rowColor = "rowColor"; 24var tableTab = "tableTab"; 25var activeTableTab = "activeTableTab"; 26</script> 27<noscript> 28<div>JavaScript is disabled on your browser.</div> 29</noscript> 30<!-- ========= START OF TOP NAVBAR ======= --> 31<div class="topNav"><a name="navbar.top"> 32<!-- --> 33</a> 34<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 35<a name="navbar.top.firstrow"> 36<!-- --> 37</a> 38<ul class="navList" title="Navigation"> 39<li><a href="../../../../overview-summary.html">Overview</a></li> 40<li><a href="package-summary.html">Package</a></li> 41<li class="navBarCell1Rev">Class</li> 42<li><a href="package-tree.html">Tree</a></li> 43<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 44<li><a href="../../../../index-all.html">Index</a></li> 45<li><a href="../../../../help-doc.html">Help</a></li> 46</ul> 47</div> 48<div class="subNav"> 49<ul class="navList"> 50<li>Prev Class</li> 51<li><a href="../../../../com/davemorrissey/labs/subscaleview/ImageViewState.html" title="class in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Next Class</span></a></li> 52</ul> 53<ul class="navList"> 54<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/ImageSource.html" target="_top">Frames</a></li> 55<li><a href="ImageSource.html" target="_top">No Frames</a></li> 56</ul> 57<ul class="navList" id="allclasses_navbar_top"> 58<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 59</ul> 60<div> 61<script type="text/javascript"><!-- 62 allClassesLink = document.getElementById("allclasses_navbar_top"); 63 if(window==top) { 64 allClassesLink.style.display = "block"; 65 } 66 else { 67 allClassesLink.style.display = "none"; 68 } 69 //--> 70</script> 71</div> 72<div> 73<ul class="subNavList"> 74<li>Summary: </li> 75<li>Nested | </li> 76<li>Field | </li> 77<li>Constr | </li> 78<li><a href="#method.summary">Method</a></li> 79</ul> 80<ul class="subNavList"> 81<li>Detail: </li> 82<li>Field | </li> 83<li>Constr | </li> 84<li><a href="#method.detail">Method</a></li> 85</ul> 86</div> 87<a name="skip.navbar.top"> 88<!-- --> 89</a></div> 90<!-- ========= END OF TOP NAVBAR ========= --> 91<!-- ======== START OF CLASS DATA ======== --> 92<div class="header"> 93<div class="subTitle">com.davemorrissey.labs.subscaleview</div> 94<h2 title="Class ImageSource" class="title">Class ImageSource</h2> 95</div> 96<div class="contentContainer"> 97<ul class="inheritance"> 98<li><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 99<li> 100<ul class="inheritance"> 101<li>com.davemorrissey.labs.subscaleview.ImageSource</li> 102</ul> 103</li> 104</ul> 105<div class="description"> 106<ul class="blockList"> 107<li class="blockList"> 108<hr> 109<br> 110<pre>public final class <span class="typeNameLabel">ImageSource</span> 111extends <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> 112<div class="block">Helper class used to set the source and additional attributes from a variety of sources. Supports 113 use of a bitmap, asset, resource, external file or any other URI. 114 115 When you are using a preview image, you must set the dimensions of the full size image on the 116 ImageSource object for the full size image using the <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#dimensions-int-int-"><code>dimensions(int, int)</code></a> method.</div> 117</li> 118</ul> 119</div> 120<div class="summary"> 121<ul class="blockList"> 122<li class="blockList"> 123<!-- ========== METHOD SUMMARY =========== --> 124<ul class="blockList"> 125<li class="blockList"><a name="method.summary"> 126<!-- --> 127</a> 128<h3>Method Summary</h3> 129<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 130<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 131<tr> 132<th class="colFirst" scope="col">Modifier and Type</th> 133<th class="colLast" scope="col">Method and Description</th> 134</tr> 135<tr id="i0" class="altColor"> 136<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 137<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#asset-java.lang.String-">asset</a></span>(<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> assetName)</code> 138<div class="block">Create an instance from an asset name.</div> 139</td> 140</tr> 141<tr id="i1" class="rowColor"> 142<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 143<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#bitmap-android.graphics.Bitmap-">bitmap</a></span>(<a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a> bitmap)</code> 144<div class="block">Provide a loaded bitmap for display.</div> 145</td> 146</tr> 147<tr id="i2" class="altColor"> 148<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 149<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#cachedBitmap-android.graphics.Bitmap-">cachedBitmap</a></span>(<a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a> bitmap)</code> 150<div class="block">Provide a loaded and cached bitmap for display.</div> 151</td> 152</tr> 153<tr id="i3" class="rowColor"> 154<td class="colFirst"><code><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 155<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#dimensions-int-int-">dimensions</a></span>(int sWidth, 156 int sHeight)</code> 157<div class="block">Declare the dimensions of the image.</div> 158</td> 159</tr> 160<tr id="i4" class="altColor"> 161<td class="colFirst"><code>protected <a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a></code></td> 162<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getBitmap--">getBitmap</a></span>()</code> </td> 163</tr> 164<tr id="i5" class="rowColor"> 165<td class="colFirst"><code>protected <a href="https://developer.android.com/reference/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a></code></td> 166<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getResource--">getResource</a></span>()</code> </td> 167</tr> 168<tr id="i6" class="altColor"> 169<td class="colFirst"><code>protected int</code></td> 170<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getSHeight--">getSHeight</a></span>()</code> </td> 171</tr> 172<tr id="i7" class="rowColor"> 173<td class="colFirst"><code>protected <a href="https://developer.android.com/reference/android/graphics/Rect.html?is-external=true" title="class or interface in android.graphics">Rect</a></code></td> 174<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getSRegion--">getSRegion</a></span>()</code> </td> 175</tr> 176<tr id="i8" class="altColor"> 177<td class="colFirst"><code>protected int</code></td> 178<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getSWidth--">getSWidth</a></span>()</code> </td> 179</tr> 180<tr id="i9" class="rowColor"> 181<td class="colFirst"><code>protected boolean</code></td> 182<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getTile--">getTile</a></span>()</code> </td> 183</tr> 184<tr id="i10" class="altColor"> 185<td class="colFirst"><code>protected <a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net">Uri</a></code></td> 186<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#getUri--">getUri</a></span>()</code> </td> 187</tr> 188<tr id="i11" class="rowColor"> 189<td class="colFirst"><code>protected boolean</code></td> 190<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#isCached--">isCached</a></span>()</code> </td> 191</tr> 192<tr id="i12" class="altColor"> 193<td class="colFirst"><code><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 194<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#region-android.graphics.Rect-">region</a></span>(<a href="https://developer.android.com/reference/android/graphics/Rect.html?is-external=true" title="class or interface in android.graphics">Rect</a> sRegion)</code> 195<div class="block">Use a region of the source image.</div> 196</td> 197</tr> 198<tr id="i13" class="rowColor"> 199<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 200<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#resource-int-">resource</a></span>(int resId)</code> 201<div class="block">Create an instance from a resource.</div> 202</td> 203</tr> 204<tr id="i14" class="altColor"> 205<td class="colFirst"><code><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 206<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#tiling-boolean-">tiling</a></span>(boolean tile)</code> 207<div class="block">Enable or disable tiling of the image.</div> 208</td> 209</tr> 210<tr id="i15" class="rowColor"> 211<td class="colFirst"><code><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 212<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#tilingDisabled--">tilingDisabled</a></span>()</code> 213<div class="block">Disable tiling of the image.</div> 214</td> 215</tr> 216<tr id="i16" class="altColor"> 217<td class="colFirst"><code><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 218<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#tilingEnabled--">tilingEnabled</a></span>()</code> 219<div class="block">Enable tiling of the image.</div> 220</td> 221</tr> 222<tr id="i17" class="rowColor"> 223<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 224<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#uri-java.lang.String-">uri</a></span>(<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uri)</code> 225<div class="block">Create an instance from a URI.</div> 226</td> 227</tr> 228<tr id="i18" class="altColor"> 229<td class="colFirst"><code>static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a></code></td> 230<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html#uri-android.net.Uri-">uri</a></span>(<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net">Uri</a> uri)</code> 231<div class="block">Create an instance from a URI.</div> 232</td> 233</tr> 234</table> 235<ul class="blockList"> 236<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 237<!-- --> 238</a> 239<h3>Methods inherited from class java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 240<code><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 241</ul> 242</li> 243</ul> 244</li> 245</ul> 246</div> 247<div class="details"> 248<ul class="blockList"> 249<li class="blockList"> 250<!-- ============ METHOD DETAIL ========== --> 251<ul class="blockList"> 252<li class="blockList"><a name="method.detail"> 253<!-- --> 254</a> 255<h3>Method Detail</h3> 256<a name="resource-int-"> 257<!-- --> 258</a> 259<ul class="blockList"> 260<li class="blockList"> 261<h4>resource</h4> 262<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> resource(int resId)</pre> 263<div class="block">Create an instance from a resource. The correct resource for the device screen resolution will be used.</div> 264<dl> 265<dt><span class="paramLabel">Parameters:</span></dt> 266<dd><code>resId</code> - resource ID.</dd> 267<dt><span class="returnLabel">Returns:</span></dt> 268<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 269</dl> 270</li> 271</ul> 272<a name="asset-java.lang.String-"> 273<!-- --> 274</a> 275<ul class="blockList"> 276<li class="blockList"> 277<h4>asset</h4> 278<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> asset(<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> assetName)</pre> 279<div class="block">Create an instance from an asset name.</div> 280<dl> 281<dt><span class="paramLabel">Parameters:</span></dt> 282<dd><code>assetName</code> - asset name.</dd> 283<dt><span class="returnLabel">Returns:</span></dt> 284<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 285</dl> 286</li> 287</ul> 288<a name="uri-java.lang.String-"> 289<!-- --> 290</a> 291<ul class="blockList"> 292<li class="blockList"> 293<h4>uri</h4> 294<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> uri(<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uri)</pre> 295<div class="block">Create an instance from a URI. If the URI does not start with a scheme, it's assumed to be the URI 296 of a file.</div> 297<dl> 298<dt><span class="paramLabel">Parameters:</span></dt> 299<dd><code>uri</code> - image URI.</dd> 300<dt><span class="returnLabel">Returns:</span></dt> 301<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 302</dl> 303</li> 304</ul> 305<a name="uri-android.net.Uri-"> 306<!-- --> 307</a> 308<ul class="blockList"> 309<li class="blockList"> 310<h4>uri</h4> 311<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> uri(<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net">Uri</a> uri)</pre> 312<div class="block">Create an instance from a URI.</div> 313<dl> 314<dt><span class="paramLabel">Parameters:</span></dt> 315<dd><code>uri</code> - image URI.</dd> 316<dt><span class="returnLabel">Returns:</span></dt> 317<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 318</dl> 319</li> 320</ul> 321<a name="bitmap-android.graphics.Bitmap-"> 322<!-- --> 323</a> 324<ul class="blockList"> 325<li class="blockList"> 326<h4>bitmap</h4> 327<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> bitmap(<a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a> bitmap)</pre> 328<div class="block">Provide a loaded bitmap for display.</div> 329<dl> 330<dt><span class="paramLabel">Parameters:</span></dt> 331<dd><code>bitmap</code> - bitmap to be displayed.</dd> 332<dt><span class="returnLabel">Returns:</span></dt> 333<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 334</dl> 335</li> 336</ul> 337<a name="cachedBitmap-android.graphics.Bitmap-"> 338<!-- --> 339</a> 340<ul class="blockList"> 341<li class="blockList"> 342<h4>cachedBitmap</h4> 343<pre>public static <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> cachedBitmap(<a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a> bitmap)</pre> 344<div class="block">Provide a loaded and cached bitmap for display. This bitmap will not be recycled when it is no 345 longer needed. Use this method if you loaded the bitmap with an image loader such as Picasso 346 or Volley.</div> 347<dl> 348<dt><span class="paramLabel">Parameters:</span></dt> 349<dd><code>bitmap</code> - bitmap to be displayed.</dd> 350<dt><span class="returnLabel">Returns:</span></dt> 351<dd>an <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview"><code>ImageSource</code></a> instance.</dd> 352</dl> 353</li> 354</ul> 355<a name="tilingEnabled--"> 356<!-- --> 357</a> 358<ul class="blockList"> 359<li class="blockList"> 360<h4>tilingEnabled</h4> 361<pre>public <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> tilingEnabled()</pre> 362<div class="block">Enable tiling of the image. This does not apply to preview images which are always loaded as a single bitmap., 363 and tiling cannot be disabled when displaying a region of the source image.</div> 364<dl> 365<dt><span class="returnLabel">Returns:</span></dt> 366<dd>this instance for chaining.</dd> 367</dl> 368</li> 369</ul> 370<a name="tilingDisabled--"> 371<!-- --> 372</a> 373<ul class="blockList"> 374<li class="blockList"> 375<h4>tilingDisabled</h4> 376<pre>public <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> tilingDisabled()</pre> 377<div class="block">Disable tiling of the image. This does not apply to preview images which are always loaded as a single bitmap, 378 and tiling cannot be disabled when displaying a region of the source image.</div> 379<dl> 380<dt><span class="returnLabel">Returns:</span></dt> 381<dd>this instance for chaining.</dd> 382</dl> 383</li> 384</ul> 385<a name="tiling-boolean-"> 386<!-- --> 387</a> 388<ul class="blockList"> 389<li class="blockList"> 390<h4>tiling</h4> 391<pre>public <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> tiling(boolean tile)</pre> 392<div class="block">Enable or disable tiling of the image. This does not apply to preview images which are always loaded as a single bitmap, 393 and tiling cannot be disabled when displaying a region of the source image.</div> 394<dl> 395<dt><span class="paramLabel">Parameters:</span></dt> 396<dd><code>tile</code> - whether tiling should be enabled.</dd> 397<dt><span class="returnLabel">Returns:</span></dt> 398<dd>this instance for chaining.</dd> 399</dl> 400</li> 401</ul> 402<a name="region-android.graphics.Rect-"> 403<!-- --> 404</a> 405<ul class="blockList"> 406<li class="blockList"> 407<h4>region</h4> 408<pre>public <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> region(<a href="https://developer.android.com/reference/android/graphics/Rect.html?is-external=true" title="class or interface in android.graphics">Rect</a> sRegion)</pre> 409<div class="block">Use a region of the source image. Region must be set independently for the full size image and the preview if 410 you are using one.</div> 411<dl> 412<dt><span class="paramLabel">Parameters:</span></dt> 413<dd><code>sRegion</code> - the region of the source image to be displayed.</dd> 414<dt><span class="returnLabel">Returns:</span></dt> 415<dd>this instance for chaining.</dd> 416</dl> 417</li> 418</ul> 419<a name="dimensions-int-int-"> 420<!-- --> 421</a> 422<ul class="blockList"> 423<li class="blockList"> 424<h4>dimensions</h4> 425<pre>public <a href="../../../../com/davemorrissey/labs/subscaleview/ImageSource.html" title="class in com.davemorrissey.labs.subscaleview">ImageSource</a> dimensions(int sWidth, 426 int sHeight)</pre> 427<div class="block">Declare the dimensions of the image. This is only required for a full size image, when you are specifying a URI 428 and also a preview image. When displaying a bitmap object, or not using a preview, you do not need to declare 429 the image dimensions. Note if the declared dimensions are found to be incorrect, the view will reset.</div> 430<dl> 431<dt><span class="paramLabel">Parameters:</span></dt> 432<dd><code>sWidth</code> - width of the source image.</dd> 433<dd><code>sHeight</code> - height of the source image.</dd> 434<dt><span class="returnLabel">Returns:</span></dt> 435<dd>this instance for chaining.</dd> 436</dl> 437</li> 438</ul> 439<a name="getUri--"> 440<!-- --> 441</a> 442<ul class="blockList"> 443<li class="blockList"> 444<h4>getUri</h4> 445<pre>protected final <a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net">Uri</a> getUri()</pre> 446</li> 447</ul> 448<a name="getBitmap--"> 449<!-- --> 450</a> 451<ul class="blockList"> 452<li class="blockList"> 453<h4>getBitmap</h4> 454<pre>protected final <a href="https://developer.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a> getBitmap()</pre> 455</li> 456</ul> 457<a name="getResource--"> 458<!-- --> 459</a> 460<ul class="blockList"> 461<li class="blockList"> 462<h4>getResource</h4> 463<pre>protected final <a href="https://developer.android.com/reference/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> getResource()</pre> 464</li> 465</ul> 466<a name="getTile--"> 467<!-- --> 468</a> 469<ul class="blockList"> 470<li class="blockList"> 471<h4>getTile</h4> 472<pre>protected final boolean getTile()</pre> 473</li> 474</ul> 475<a name="getSWidth--"> 476<!-- --> 477</a> 478<ul class="blockList"> 479<li class="blockList"> 480<h4>getSWidth</h4> 481<pre>protected final int getSWidth()</pre> 482</li> 483</ul> 484<a name="getSHeight--"> 485<!-- --> 486</a> 487<ul class="blockList"> 488<li class="blockList"> 489<h4>getSHeight</h4> 490<pre>protected final int getSHeight()</pre> 491</li> 492</ul> 493<a name="getSRegion--"> 494<!-- --> 495</a> 496<ul class="blockList"> 497<li class="blockList"> 498<h4>getSRegion</h4> 499<pre>protected final <a href="https://developer.android.com/reference/android/graphics/Rect.html?is-external=true" title="class or interface in android.graphics">Rect</a> getSRegion()</pre> 500</li> 501</ul> 502<a name="isCached--"> 503<!-- --> 504</a> 505<ul class="blockListLast"> 506<li class="blockList"> 507<h4>isCached</h4> 508<pre>protected final boolean isCached()</pre> 509</li> 510</ul> 511</li> 512</ul> 513</li> 514</ul> 515</div> 516</div> 517<!-- ========= END OF CLASS DATA ========= --> 518<!-- ======= START OF BOTTOM NAVBAR ====== --> 519<div class="bottomNav"><a name="navbar.bottom"> 520<!-- --> 521</a> 522<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 523<a name="navbar.bottom.firstrow"> 524<!-- --> 525</a> 526<ul class="navList" title="Navigation"> 527<li><a href="../../../../overview-summary.html">Overview</a></li> 528<li><a href="package-summary.html">Package</a></li> 529<li class="navBarCell1Rev">Class</li> 530<li><a href="package-tree.html">Tree</a></li> 531<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 532<li><a href="../../../../index-all.html">Index</a></li> 533<li><a href="../../../../help-doc.html">Help</a></li> 534</ul> 535</div> 536<div class="subNav"> 537<ul class="navList"> 538<li>Prev Class</li> 539<li><a href="../../../../com/davemorrissey/labs/subscaleview/ImageViewState.html" title="class in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Next Class</span></a></li> 540</ul> 541<ul class="navList"> 542<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/ImageSource.html" target="_top">Frames</a></li> 543<li><a href="ImageSource.html" target="_top">No Frames</a></li> 544</ul> 545<ul class="navList" id="allclasses_navbar_bottom"> 546<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 547</ul> 548<div> 549<script type="text/javascript"><!-- 550 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 551 if(window==top) { 552 allClassesLink.style.display = "block"; 553 } 554 else { 555 allClassesLink.style.display = "none"; 556 } 557 //--> 558</script> 559</div> 560<div> 561<ul class="subNavList"> 562<li>Summary: </li> 563<li>Nested | </li> 564<li>Field | </li> 565<li>Constr | </li> 566<li><a href="#method.summary">Method</a></li> 567</ul> 568<ul class="subNavList"> 569<li>Detail: </li> 570<li>Field | </li> 571<li>Constr | </li> 572<li><a href="#method.detail">Method</a></li> 573</ul> 574</div> 575<a name="skip.navbar.bottom"> 576<!-- --> 577</a></div> 578<!-- ======== END OF BOTTOM NAVBAR ======= --> 579</body> 580</html> 581