Tabnine Logo
SubsamplingScaleImageView.getOrientation
Code IndexAdd Tabnine to your IDE (free)

How to use
getOrientation
method
in
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView

Best Java code snippets using com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.getOrientation (Showing top 4 results out of 315)

origin: davemorrissey/subsampling-scale-image-view

  @Override public void onClick(View v) { imageView.setOrientation((imageView.getOrientation() + 90) % 360); }
});
origin: davemorrissey/subsampling-scale-image-view

  @Override public void onClick(View v) { imageView.setOrientation((imageView.getOrientation() + 90) % 360); }
});
origin: davemorrissey/subsampling-scale-image-view

/**
 * Get the current state of the view (scale, center, orientation) for restoration after rotate. Will return null if
 * the view is not ready.
 * @return an {@link ImageViewState} instance representing the current position of the image. null if the view isn't ready.
 */
@Nullable
public final ImageViewState getState() {
  if (vTranslate != null && sWidth > 0 && sHeight > 0) {
    //noinspection ConstantConditions
    return new ImageViewState(getScale(), getCenter(), getOrientation());
  }
  return null;
}
origin: mozilla-tw/Rocket

/**
 * Get the current state of the view (scale, center, orientation) for restoration after rotate. Will return null if
 * the view is not ready.
 */
public final ImageViewState getState() {
  if (vTranslate != null && sWidth > 0 && sHeight > 0) {
    return new ImageViewState(getScale(), getCenter(), getOrientation());
  }
  return null;
}
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewgetOrientation

Javadoc

Returns the orientation setting. This can return #ORIENTATION_USE_EXIF, in which case it doesn't tell you the applied orientation of the image. For that, use #getAppliedOrientation().

Popular methods of SubsamplingScaleImageView

  • setImage
    Set the image source from a bitmap, resource, asset, file or other URI, starting with a given orient
  • setDoubleTapZoomScale
    Set the scale the image will zoom in to when double tapped. This also the scale point where a double
  • setMaxScale
    Set the maximum scale allowed. A value of 1 means 1:1 pixels at maximum scale. You may wish to set t
  • setMinimumDpi
    This is a screen density aware alternative to #setMaxScale(float); it allows you to express the maxi
  • setScaleAndCenter
    Externally change the scale and translation of the source image. This may be used with getCenter() a
  • getWidth
  • setDoubleTapZoomDpi
    A density aware alternative to #setDoubleTapZoomScale(float); this allows you to express the scale t
  • setMinimumScaleType
    Set the minimum scale type. See static fields. Normally #SCALE_TYPE_CENTER_INSIDE is best, for image
  • setMinimumTileDpi
    By default, image tiles are at least as high resolution as the screen. For a retina screen this may
  • setPanEnabled
    Enable or disable pan gesture detection. Disabling pan causes the image to be centered.
  • setZoomEnabled
    Enable or disable zoom gesture detection. Disabling zoom locks the the current scale.
  • <init>
  • setZoomEnabled,
  • <init>,
  • getCenter,
  • getContext,
  • getHeight,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now