Package io.scanbot.sdk.ui
Class MagnifierView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.accessibility.AccessibilityEventSource
public final class MagnifierView extends View
View that draws magnifier. Magnifier should be properly set up before draw.
-
-
Constructor Summary
Constructors Constructor Description MagnifierView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description final UnitdrawMagnifier(PointF zoomPoint)Shows magnifier window for given position on the image. final UniteraseMagnifier()Hides magnifier window. final UnitsetImageRotation(Float rotation)Sets rotation for the image preview when it is magnified final UnitsetupMagnifier(EditPolygonImageView view)Setup magnifier using given EditPolygonImageView. UnitonAttachedToWindow()UnitonDetachedFromWindow()final UnitsetEnableBounding(Boolean enableBounding)Enables Bounding of magnifier view. -
-
Constructor Detail
-
MagnifierView
MagnifierView(Context context, AttributeSet attrs)
-
-
Method Detail
-
drawMagnifier
final Unit drawMagnifier(PointF zoomPoint)
Shows magnifier window for given position on the image.
-
eraseMagnifier
final Unit eraseMagnifier()
Hides magnifier window.
-
setImageRotation
final Unit setImageRotation(Float rotation)
Sets rotation for the image preview when it is magnified
- Parameters:
rotation- in degrees
-
setupMagnifier
final Unit setupMagnifier(EditPolygonImageView view)
Setup magnifier using given EditPolygonImageView.
-
onAttachedToWindow
Unit onAttachedToWindow()
-
onDetachedFromWindow
Unit onDetachedFromWindow()
-
setEnableBounding
final Unit setEnableBounding(Boolean enableBounding)
Enables Bounding of magnifier view.
-
-
-
-