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

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

Best Java code snippets using com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.setOrientation (Showing top 6 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

@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View rootView = inflater.inflate(layout.imagedisplay_rotate_fragment, container, false);
  final SubsamplingScaleImageView imageView = rootView.findViewById(id.imageView);
  imageView.setImage(ImageSource.asset("swissroad.jpg"));
  imageView.setOrientation(90);
  final ImageDisplayActivity activity = (ImageDisplayActivity)getActivity();
  if (activity != null) {
    rootView.findViewById(id.previous).setOnClickListener(new View.OnClickListener() {
      @Override public void onClick(View v) { activity.previous(); }
    });
    rootView.findViewById(id.next).setOnClickListener(new View.OnClickListener() {
      @Override public void onClick(View v) { activity.next(); }
    });
  }
  rootView.findViewById(id.rotate).setOnClickListener(new View.OnClickListener() {
    @Override public void onClick(View v) { imageView.setOrientation((imageView.getOrientation() + 90) % 360); }
  });
  return rootView;
}
origin: davemorrissey/subsampling-scale-image-view

@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View rootView = inflater.inflate(layout.imagedisplay_region_fragment, container, false);
  final SubsamplingScaleImageView imageView = rootView.findViewById(id.imageView);
  imageView.setBitmapDecoderFactory(new CompatDecoderFactory<ImageDecoder>(SkiaImageDecoder.class, Bitmap.Config.ARGB_8888));
  imageView.setRegionDecoderFactory(new CompatDecoderFactory<ImageRegionDecoder>(SkiaImageRegionDecoder.class, Bitmap.Config.ARGB_8888));
  imageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_90);
  imageView.setImage(ImageSource.asset("card.png").region(new Rect(5200, 651, 8200, 3250)));
  final ImageDisplayActivity activity = (ImageDisplayActivity)getActivity();
  if (activity != null) {
    rootView.findViewById(id.previous).setOnClickListener(new View.OnClickListener() {
      @Override public void onClick(View v) { activity.previous(); }
    });
  }
  rootView.findViewById(id.rotate).setOnClickListener(new View.OnClickListener() {
    @Override public void onClick(View v) { imageView.setOrientation((imageView.getOrientation() + 90) % 360); }
  });
  return rootView;
}
origin: kollerlukas/Camera-Roll-Android-App

imageView.setOrientation(orientation);
origin: layerhq/Atlas-Android

  mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_0);
  mImageView.setImage(
      ImageSource.uri(mMessagePartId).dimensions(info.width, info.height),
  break;
case ThreePartImageUtils.ORIENTATION_90:
  mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_270);
  mImageView.setImage(
      ImageSource.uri(mMessagePartId).dimensions(info.height, info.width),
  break;
case ThreePartImageUtils.ORIENTATION_180:
  mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_180);
  mImageView.setImage(
      ImageSource.uri(mMessagePartId).dimensions(info.width, info.height),
  break;
case ThreePartImageUtils.ORIENTATION_270:
  mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_90);
  mImageView.setImage(
      ImageSource.uri(mMessagePartId).dimensions(info.height, info.width),
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewsetOrientation

Javadoc

Sets the image orientation. It's best to call this before setting the image file or asset, because it may waste loading of tiles. However, this can be freely called at any time.

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,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • JList (javax.swing)
  • Top 12 Jupyter Notebook extensions
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