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

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

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

origin: davemorrissey/subsampling-scale-image-view

setMinimumDpi(160);
setDoubleTapZoomDpi(160);
setMinimumTileDpi(320);
setGestureDetector(context);
this.handler = new Handler(new Handler.Callback() {
origin: Piasy/BigImageViewer

@UiThread
private void doShowImage(final int imageType, final File image) {
  if (mMainView != null) {
    removeView(mMainView);
  }
  mMainView = mViewFactory.createMainView(getContext(), imageType, image, mInitScaleType);
  if (mMainView == null) {
    onFail(new RuntimeException("Image type not supported: "
                  + ImageInfoExtractor.typeName(imageType)));
    return;
  }
  addView(mMainView, ViewGroup.LayoutParams.MATCH_PARENT,
      ViewGroup.LayoutParams.MATCH_PARENT);
  mMainView.setOnClickListener(mOnClickListener);
  mMainView.setOnLongClickListener(mOnLongClickListener);
  if (mMainView instanceof SubsamplingScaleImageView) {
    mSSIV = (SubsamplingScaleImageView) mMainView;
    mSSIV.setMinimumTileDpi(160);
    setOptimizeDisplay(mOptimizeDisplay);
    setInitScaleType(mInitScaleType);
    mSSIV.setImage(ImageSource.uri(Uri.fromFile(image)));
  }
  if (mFailureImageView != null) {
    mFailureImageView.setVisibility(GONE);
  }
}
origin: davemorrissey/subsampling-scale-image-view

  view.setMinimumTileDpi(50);
} else {
  view.setMinimumTileDpi(320);
origin: kollerlukas/Camera-Roll-Android-App

imageView.setMinimumTileDpi(196);
origin: kollerlukas/Camera-Roll-Android-App

imageView.setRegionDecoderClass(getBitmapRegionDecoderClass());
imageView.setMinimumTileDpi(196);
imageView.setMinimumDpi(80);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewsetMinimumTileDpi

Javadoc

By default, image tiles are at least as high resolution as the screen. For a retina screen this may not be necessary, and may increase the likelihood of an OutOfMemoryError. This method sets a DPI at which higher resolution tiles should be loaded. Using a lower number will on average use less memory but result in a lower quality image. 160-240dpi will usually be enough. This should be called before setting the image source, because it affects which tiles get loaded. When using an untiled source image this method has no effect.

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
  • 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>
  • getCenter
    Returns the source point at the center of the view.
  • <init>,
  • getCenter,
  • getContext,
  • getHeight,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ImageIO (javax.imageio)
  • 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