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

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

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

origin: davemorrissey/subsampling-scale-image-view

/**
 * Convert source rect to screen rect, integer values.
 */
private void sourceToViewRect(@NonNull Rect sRect, @NonNull Rect vTarget) {
  vTarget.set(
    (int)sourceToViewX(sRect.left),
    (int)sourceToViewY(sRect.top),
    (int)sourceToViewX(sRect.right),
    (int)sourceToViewY(sRect.bottom)
  );
}
origin: davemorrissey/subsampling-scale-image-view

/**
 * Convert source coordinate to view coordinate.
 * @param sx source X coordinate.
 * @param sy source Y coordinate.
 * @param vTarget target object for result. The same instance is also returned.
 * @return view coordinates. This is the same instance passed to the vTarget param.
 */
@Nullable
public final PointF sourceToViewCoord(float sx, float sy, @NonNull PointF vTarget) {
  if (vTranslate == null) {
    return null;
  }
  vTarget.set(sourceToViewX(sx), sourceToViewY(sy));
  return vTarget;
}
origin: davemorrissey/subsampling-scale-image-view

vTranslate.y -= sourceToViewY(anim.sCenterEnd.y) - vFocusNowY;
  canvas.drawCircle(sourceToViewX(quickScaleSCenter.x), sourceToViewY(quickScaleSCenter.y), px(35), debugLinePaint);
origin: mozilla-tw/Rocket

/**
 * Convert source coordinate to screen coordinate.
 */
public final PointF sourceToViewCoord(float sx, float sy, PointF vTarget) {
  if (vTranslate == null) {
    return null;
  }
  vTarget.set(sourceToViewX(sx), sourceToViewY(sy));
  return vTarget;
}
origin: mozilla-tw/Rocket

/**
 * Convert source rect to screen rect, integer values.
 */
private Rect sourceToViewRect(Rect sRect, Rect vTarget) {
  vTarget.set(
    (int)sourceToViewX(sRect.left),
    (int)sourceToViewY(sRect.top),
    (int)sourceToViewX(sRect.right),
    (int)sourceToViewY(sRect.bottom)
  );
  return vTarget;
}
origin: mozilla-tw/Rocket

vTranslate.y -= sourceToViewY(anim.sCenterEnd.y) - vFocusNowY;
  canvas.drawCircle(sourceToViewX(quickScaleSCenter.x), sourceToViewY(quickScaleSCenter.y), 35, debugPaint);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewsourceToViewY

Javadoc

Convert source to screen y coordinate.

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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Permission (java.security)
    Legacy security code; do not use.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
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