Back to Subsampling Scale Image View

ImageViewState (library 3.10.0 API)

docs/javadoc/com/davemorrissey/labs/subscaleview/ImageViewState.html

3.10.04.4 KB
Original Source

Skip navigation links

com.davemorrissey.labs.subscaleview

Class ImageViewState


public classImageViewStateextends[Object](https://developer.android.com/reference/java/lang/Object.html?is-external=true "class or interface in java.lang")implements[Serializable](https://developer.android.com/reference/java/io/Serializable.html?is-external=true "class or interface in java.io")

Wraps the scale, center and orientation of a displayed image for easy restoration on screen rotate. See Also:Serialized Form

Constructor Summary

Constructors | Constructor and Description | | --- | | ImageViewState(float scale, PointF center, int orientation) |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method and Description | | --- | --- | | PointF | getCenter() | | int | getOrientation() | | float | getScale() |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

ImageViewState

public ImageViewState(float scale,[@NonNull](https://developer.android.com/reference/android/support.annotation.NonNull.html?is-external=true "class or interface in android")[PointF](https://developer.android.com/reference/android/graphics/PointF.html?is-external=true "class or interface in android.graphics")center,
                      int orientation)

Method Detail

- 

getScale

public float getScale()
- 

getCenter

[@NonNull](https://developer.android.com/reference/android/support.annotation.NonNull.html?is-external=true "class or interface in android")public[PointF](https://developer.android.com/reference/android/graphics/PointF.html?is-external=true "class or interface in android.graphics")getCenter()
- 

getOrientation

public int getOrientation()

Skip navigation links