Skip to content

Commit

Permalink
Support the other 4 exif orientations: horizontally and vertically fl…
Browse files Browse the repository at this point in the history
…ipped,

transposed and transversed images.
  • Loading branch information
jkmcnk committed Jan 19, 2018
1 parent dd61ffa commit d142f7b
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,117 +230,135 @@ <h3>Field Summary</h3>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_H">FLIP_H</a></span></code>
<div class="block">Flip image horizontally</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_NONE">FLIP_NONE</a></span></code>
<div class="block">No flipping</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_V">FLIP_V</a></span></code>
<div class="block">Flip image vertically</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_0">ORIENTATION_0</a></span></code>
<div class="block">Display the image file in its native orientation.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_180">ORIENTATION_180</a></span></code>
<div class="block">Rotate the image 180 degrees.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_270">ORIENTATION_270</a></span></code>
<div class="block">Rotate the image 270 degrees clockwise.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_90">ORIENTATION_90</a></span></code>
<div class="block">Rotate the image 90 degrees clockwise.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_USE_EXIF">ORIENTATION_USE_EXIF</a></span></code>
<div class="block">Attempt to use EXIF information on the image to rotate it.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_ANIM">ORIGIN_ANIM</a></span></code>
<div class="block">State change originated from animation.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_DOUBLE_TAP_ZOOM">ORIGIN_DOUBLE_TAP_ZOOM</a></span></code>
<div class="block">State change originated from a double tap zoom anim.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_FLING">ORIGIN_FLING</a></span></code>
<div class="block">State change originated from a fling momentum anim.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_TOUCH">ORIGIN_TOUCH</a></span></code>
<div class="block">State change originated from touch gesture.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_CENTER">PAN_LIMIT_CENTER</a></span></code>
<div class="block">Allows the image to be panned until a corner reaches the center of the screen but no further.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_INSIDE">PAN_LIMIT_INSIDE</a></span></code>
<div class="block">Don't allow the image to be panned off screen.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_OUTSIDE">PAN_LIMIT_OUTSIDE</a></span></code>
<div class="block">Allows the image to be panned until it is just off screen, but no further.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CENTER_CROP">SCALE_TYPE_CENTER_CROP</a></span></code>
<div class="block">Scale the image uniformly so that both dimensions of the image will be equal to or larger than the corresponding dimension of the view.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CENTER_INSIDE">SCALE_TYPE_CENTER_INSIDE</a></span></code>
<div class="block">Scale the image so that both dimensions of the image will be equal to or less than the corresponding dimension of the view.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CUSTOM">SCALE_TYPE_CUSTOM</a></span></code>
<div class="block">Scale the image so that both dimensions of the image will be equal to or less than the maxScale and equal to or larger than minScale.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_START">SCALE_TYPE_START</a></span></code>
<div class="block">Scale the image so that both dimensions of the image will be equal to or larger than the corresponding dimension of the view.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#TILE_SIZE_AUTO">TILE_SIZE_AUTO</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ZOOM_FOCUS_CENTER">ZOOM_FOCUS_CENTER</a></span></code>
<div class="block">During zoom animation, move the point of the image that was tapped to the center of the screen.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ZOOM_FOCUS_CENTER_IMMEDIATE">ZOOM_FOCUS_CENTER_IMMEDIATE</a></span></code>
<div class="block">Zoom in to and center the tapped point immediately without animating.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ZOOM_FOCUS_FIXED">ZOOM_FOCUS_FIXED</a></span></code>
<div class="block">During zoom animation, keep the point of the image that was tapped in the same place, and scale the image around it.</div>
Expand Down Expand Up @@ -954,6 +972,48 @@ <h4>ORIENTATION_270</h4>
</dl>
</li>
</ul>
<a name="FLIP_NONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLIP_NONE</h4>
<pre>public static final&nbsp;int FLIP_NONE</pre>
<div class="block">No flipping</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_NONE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="FLIP_H">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLIP_H</h4>
<pre>public static final&nbsp;int FLIP_H</pre>
<div class="block">Flip image horizontally</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_H">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="FLIP_V">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLIP_V</h4>
<pre>public static final&nbsp;int FLIP_V</pre>
<div class="block">Flip image vertically</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_V">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ZOOM_FOCUS_FIXED">
<!-- -->
</a>
Expand Down Expand Up @@ -1184,7 +1244,11 @@ <h4>ORIGIN_DOUBLE_TAP_ZOOM</h4>
<ul class="blockListLast">
<li class="blockList">
<h4>TILE_SIZE_AUTO</h4>
<pre>public static&nbsp;int TILE_SIZE_AUTO</pre>
<pre>public static final&nbsp;int TILE_SIZE_AUTO</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.TILE_SIZE_AUTO">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
Expand Down
58 changes: 43 additions & 15 deletions docs/javadoc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,117 +103,145 @@ <h2 title="com.davemorrissey">com.davemorrissey.*</h2>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_H">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_H">FLIP_H</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_NONE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_NONE">FLIP_NONE</a></code></td>
<td class="colLast"><code>0</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.FLIP_V">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#FLIP_V">FLIP_V</a></code></td>
<td class="colLast"><code>2</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIENTATION_0">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_0">ORIENTATION_0</a></code></td>
<td class="colLast"><code>0</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIENTATION_180">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_180">ORIENTATION_180</a></code></td>
<td class="colLast"><code>180</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIENTATION_270">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_270">ORIENTATION_270</a></code></td>
<td class="colLast"><code>270</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIENTATION_90">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_90">ORIENTATION_90</a></code></td>
<td class="colLast"><code>90</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIENTATION_USE_EXIF">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIENTATION_USE_EXIF">ORIENTATION_USE_EXIF</a></code></td>
<td class="colLast"><code>-1</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIGIN_ANIM">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_ANIM">ORIGIN_ANIM</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIGIN_DOUBLE_TAP_ZOOM">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_DOUBLE_TAP_ZOOM">ORIGIN_DOUBLE_TAP_ZOOM</a></code></td>
<td class="colLast"><code>4</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIGIN_FLING">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_FLING">ORIGIN_FLING</a></code></td>
<td class="colLast"><code>3</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ORIGIN_TOUCH">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_TOUCH">ORIGIN_TOUCH</a></code></td>
<td class="colLast"><code>2</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.PAN_LIMIT_CENTER">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_CENTER">PAN_LIMIT_CENTER</a></code></td>
<td class="colLast"><code>3</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.PAN_LIMIT_INSIDE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_INSIDE">PAN_LIMIT_INSIDE</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.PAN_LIMIT_OUTSIDE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#PAN_LIMIT_OUTSIDE">PAN_LIMIT_OUTSIDE</a></code></td>
<td class="colLast"><code>2</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.SCALE_TYPE_CENTER_CROP">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CENTER_CROP">SCALE_TYPE_CENTER_CROP</a></code></td>
<td class="colLast"><code>2</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.SCALE_TYPE_CENTER_INSIDE">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CENTER_INSIDE">SCALE_TYPE_CENTER_INSIDE</a></code></td>
<td class="colLast"><code>1</code></td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.SCALE_TYPE_CUSTOM">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_CUSTOM">SCALE_TYPE_CUSTOM</a></code></td>
<td class="colLast"><code>3</code></td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.SCALE_TYPE_START">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#SCALE_TYPE_START">SCALE_TYPE_START</a></code></td>
<td class="colLast"><code>4</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.TILE_SIZE_AUTO">
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;int</code></td>
<td><code><a href="com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#TILE_SIZE_AUTO">TILE_SIZE_AUTO</a></code></td>
<td class="colLast"><code>2147483647</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.ZOOM_FOCUS_CENTER">
<!-- -->
Expand Down
Loading

0 comments on commit d142f7b

Please sign in to comment.