<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head><link rel="apple-touch-icon" sizes="180x180" href="/glide/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/glide/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/glide/favicon-16x16.png"><link rel="manifest" href="/glide/manifest.json">
<!-- Generated by javadoc (1.8.0_144) on Mon Nov 06 12:47:30 PST 2017 -->
<title>BitmapDrawableTransformation (glide API)</title>
<meta name="date" content="2017-11-06">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="BitmapDrawableTransformation (glide API)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":42,"i1":42,"i2":42,"i3":42};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableResource.html" title="class in com.bumptech.glide.load.resource.bitmap"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapEncoder.html" title="class in com.bumptech.glide.load.resource.bitmap"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html" target="_top">Frames</a></li>
<li><a href="BitmapDrawableTransformation.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.bumptech.glide.load.resource.bitmap</div>
<h2 title="Class BitmapDrawableTransformation" class="title">Class BitmapDrawableTransformation</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.bumptech.glide.load.resource.bitmap.BitmapDrawableTransformation</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../com/bumptech/glide/load/Key.html" title="interface in com.bumptech.glide.load">Key</a>, <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</dd>
</dl>
<hr>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">Use <a href="../../../../../../com/bumptech/glide/load/resource/bitmap/DrawableTransformation.html" title="class in com.bumptech.glide.load.resource.bitmap"><code>DrawableTransformation</code></a> instead.</span></div>
</div>
<br>
<pre><a href="http://d.android.com/reference/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public class <span class="typeNameLabel">BitmapDrawableTransformation</span>
extends <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</pre>
<div class="block">Transforms <a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable"><code>BitmapDrawable</code></a>s.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.bumptech.glide.load.Key">
<!--   -->
</a>
<h3>Fields inherited from interface&nbsp;com.bumptech.glide.load.<a href="../../../../../../com/bumptech/glide/load/Key.html" title="interface in com.bumptech.glide.load">Key</a></h3>
<code><a href="../../../../../../com/bumptech/glide/load/Key.html#CHARSET">CHARSET</a>, <a href="../../../../../../com/bumptech/glide/load/Key.html#STRING_CHARSET_NAME">STRING_CHARSET_NAME</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-android.content.Context-com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool-com.bumptech.glide.load.Transformation-">BitmapDrawableTransformation</a></span>(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
                            <a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</a>&nbsp;bitmapPool,
                            <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-"><code>BitmapDrawableTransformation(Transformation)</code></a>}</span></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-android.content.Context-com.bumptech.glide.load.Transformation-">BitmapDrawableTransformation</a></span>(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
                            <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">use <a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-"><code>BitmapDrawableTransformation(Transformation)</code></a>}</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-">BitmapDrawableTransformation</a></span>(<a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#equals-java.lang.Object-">equals</a></span>(<a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">For caching to work correctly, implementations <em>must</em> implement this method and
 <a href="../../../../../../com/bumptech/glide/load/Transformation.html#hashCode--"><code>Transformation.hashCode()</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#hashCode--">hashCode</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">For caching to work correctly, implementations <em>must</em> implement this method and
 <a href="../../../../../../com/bumptech/glide/load/Transformation.html#equals-java.lang.Object-"><code>Transformation.equals(Object)</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../com/bumptech/glide/load/engine/Resource.html" title="interface in com.bumptech.glide.load.engine">Resource</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#transform-android.content.Context-com.bumptech.glide.load.engine.Resource-int-int-">transform</a></span>(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
         <a href="../../../../../../com/bumptech/glide/load/engine/Resource.html" title="interface in com.bumptech.glide.load.engine">Resource</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;&nbsp;drawableResourceToTransform,
         int&nbsp;outWidth,
         int&nbsp;outHeight)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Transforms the given resource and returns the transformed resource.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#updateDiskCacheKey-java.security.MessageDigest-">updateDiskCacheKey</a></span>(<a href="http://d.android.com/reference/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a>&nbsp;messageDigest)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Adds all uniquely identifying information to the given digest.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BitmapDrawableTransformation</h4>
<pre>public&nbsp;BitmapDrawableTransformation(<a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</li>
</ul>
<a name="BitmapDrawableTransformation-android.content.Context-com.bumptech.glide.load.Transformation-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BitmapDrawableTransformation</h4>
<pre><a href="http://d.android.com/reference/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;BitmapDrawableTransformation(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
                                                <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-"><code>BitmapDrawableTransformation(Transformation)</code></a>}</span></div>
</li>
</ul>
<a name="BitmapDrawableTransformation-android.content.Context-com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool-com.bumptech.glide.load.Transformation-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BitmapDrawableTransformation</h4>
<pre><a href="http://d.android.com/reference/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;BitmapDrawableTransformation(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
                                                <a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/BitmapPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">BitmapPool</a>&nbsp;bitmapPool,
                                                <a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/Bitmap.html?is-external=true" title="class or interface in android.graphics">Bitmap</a>&gt;&nbsp;wrapped)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">use <a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html#BitmapDrawableTransformation-com.bumptech.glide.load.Transformation-"><code>BitmapDrawableTransformation(Transformation)</code></a>}</span></div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="transform-android.content.Context-com.bumptech.glide.load.engine.Resource-int-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>transform</h4>
<pre>public&nbsp;<a href="../../../../../../com/bumptech/glide/load/engine/Resource.html" title="interface in com.bumptech.glide.load.engine">Resource</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;&nbsp;transform(<a href="http://d.android.com/reference/android/content/Context.html?is-external=true" title="class or interface in android.content">Context</a>&nbsp;context,
                                          <a href="../../../../../../com/bumptech/glide/load/engine/Resource.html" title="interface in com.bumptech.glide.load.engine">Resource</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;&nbsp;drawableResourceToTransform,
                                          int&nbsp;outWidth,
                                          int&nbsp;outHeight)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#transform-android.content.Context-com.bumptech.glide.load.engine.Resource-int-int-">Transformation</a></code></span></div>
<div class="block">Transforms the given resource and returns the transformed resource.

 <p>If the original resource object is not returned, the original resource will be
 recycled and it's internal resources may be reused. This means it is not safe to rely on the
 original resource or any internal state of the original resource in any new resource that is
 created. Usually this shouldn't occur, but if absolutely necessary either the original resource
 object can be returned with modified internal state, or the data in the original resource can
 be copied into the transformed resource.

 <p>If a Transformation is updated, <a href="../../../../../../com/bumptech/glide/load/Transformation.html#equals-java.lang.Object-"><code>Transformation.equals(Object)</code></a>, <a href="../../../../../../com/bumptech/glide/load/Transformation.html#hashCode--"><code>Transformation.hashCode()</code></a>, and
 <a href="../../../../../../com/bumptech/glide/load/Key.html#updateDiskCacheKey-java.security.MessageDigest-"><code>Key.updateDiskCacheKey(java.security.MessageDigest)</code></a> should all change. If you're using a
 simple String key an easy way to do this is to append a version number to your key. Failing to
 do so will mean users may see images loaded from cache that had the old version of the
 Transformation applied. Changing the return values of those methods will ensure that the cache
 key has changed and therefore that any cached resources will be re-generated using the updated
 Transformation.

 <p>During development you may need to either using <a href="../../../../../../com/bumptech/glide/load/engine/DiskCacheStrategy.html#NONE"><code>DiskCacheStrategy.NONE</code></a> or make sure <a href="../../../../../../com/bumptech/glide/load/Key.html#updateDiskCacheKey-java.security.MessageDigest-"><code>Key.updateDiskCacheKey(java.security.MessageDigest)</code></a> changes each time you make a change to the
 Transformation. Otherwise the resource you request may be loaded from disk cache and your
 Transformation may not be called.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#transform-android.content.Context-com.bumptech.glide.load.engine.Resource-int-int-">transform</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - The Application context</dd>
<dd><code>drawableResourceToTransform</code> - The resource to transform.</dd>
<dd><code>outWidth</code> - The width of the view or target the resource will be displayed in, or <a href="../../../../../../com/bumptech/glide/request/target/Target.html#SIZE_ORIGINAL"><code>Target.SIZE_ORIGINAL</code></a> to indicate the
                  original resource width.</dd>
<dd><code>outHeight</code> - The height of the view or target the resource will be displayed in, or <a href="../../../../../../com/bumptech/glide/request/target/Target.html#SIZE_ORIGINAL"><code>Target.SIZE_ORIGINAL</code></a> to indicate the
                  original resource height.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The transformed resource.</dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#equals-java.lang.Object-">Transformation</a></code></span></div>
<div class="block">For caching to work correctly, implementations <em>must</em> implement this method and
 <a href="../../../../../../com/bumptech/glide/load/Transformation.html#hashCode--"><code>Transformation.hashCode()</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Key.html#equals-java.lang.Object-">equals</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Key.html" title="interface in com.bumptech.glide.load">Key</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#equals-java.lang.Object-">equals</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#hashCode--">Transformation</a></code></span></div>
<div class="block">For caching to work correctly, implementations <em>must</em> implement this method and
 <a href="../../../../../../com/bumptech/glide/load/Transformation.html#equals-java.lang.Object-"><code>Transformation.equals(Object)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Key.html#hashCode--">hashCode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Key.html" title="interface in com.bumptech.glide.load">Key</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Transformation.html#hashCode--">hashCode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Transformation.html" title="interface in com.bumptech.glide.load">Transformation</a>&lt;<a href="http://d.android.com/reference/android/graphics/drawable/BitmapDrawable.html?is-external=true" title="class or interface in android.graphics.drawable">BitmapDrawable</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="updateDiskCacheKey-java.security.MessageDigest-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateDiskCacheKey</h4>
<pre>public&nbsp;void&nbsp;updateDiskCacheKey(<a href="http://d.android.com/reference/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a>&nbsp;messageDigest)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Key.html#updateDiskCacheKey-java.security.MessageDigest-">Key</a></code></span></div>
<div class="block">Adds all uniquely identifying information to the given digest.

 <p> Note - Using <a href="http://d.android.com/reference/java/security/MessageDigest.html?is-external=true#reset--" title="class or interface in java.security"><code>MessageDigest.reset()</code></a> inside of this method will result
 in undefined behavior. </p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../com/bumptech/glide/load/Key.html#updateDiskCacheKey-java.security.MessageDigest-">updateDiskCacheKey</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/Key.html" title="interface in com.bumptech.glide.load">Key</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapDrawableResource.html" title="class in com.bumptech.glide.load.resource.bitmap"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../com/bumptech/glide/load/resource/bitmap/BitmapEncoder.html" title="class in com.bumptech.glide.load.resource.bitmap"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation.html" target="_top">Frames</a></li>
<li><a href="BitmapDrawableTransformation.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
